memmem: rearrange memmem and expand memmem-simple modules
authorPádraig Brady <P@draigBrady.com>
Tue, 22 Jun 2010 23:42:54 +0000 (00:42 +0100)
committerPádraig Brady <P@draigBrady.com>
Wed, 15 Dec 2010 22:14:31 +0000 (22:14 +0000)
commitc96bccbbaa28b6888e487ff86c8b43bd594d2de4
tree866a7ae65a88d68cf733473cc7eede823f8c6eed
parent5762122bbc691d3c62f9a9c226d3388c4421db58
memmem: rearrange memmem and expand memmem-simple modules

Move all functional checks to memmem-simple so that one has
a fully functional memmem by using just this module.
Restrict the memmem module to performance checks only.
Document exactly how the memmem and memmem-simple modules
relate to each other.

* m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move the
empty needle check from the memmem module to memmem-simple.
Also expand the empty needle check to ensure the correct
pointer is returned, not just a non NULL pointer.
In gl_FUNC_MEMMEM, make the cross compilation check only
consider the versions with performance issues.
* doc/glibc-functions/memmem.texi: Rearrange the portability
documentation to correlate with the rearranged checks.
ChangeLog
doc/glibc-functions/memmem.texi
m4/memmem.m4