This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Another attempt to improve Configure detection of memmem() [perl #133760].
authorAndy Dougherty <doughera@lafayette.edu>
Thu, 24 Jan 2019 02:39:39 +0000 (21:39 -0500)
committerAndy Dougherty <doughera@lafayette.edu>
Thu, 24 Jan 2019 02:39:39 +0000 (21:39 -0500)
commitf8d82a1010426d0eb49c33cb903413b882c85c3e
tree7ae005dda2b85e4376cedd8ddf3235eb300f9c42
parent63c1fa6a98bc60234a21de83dd191cd581a5d073
Another attempt to improve Configure detection of memmem() [perl #133760].

This updates commit ca152fd8207cf53816b1407d5f54f6ea160a3ef8.
Linux systems have memmem, but the prototype in <string.h> is only
visible if __GNU_SOURCE is defined.  This version tests for both the
prototype in <string.h> and the symbol in libc.  (Thanks to Tony C. for
the suggestion.)  (For BSD systems, no extra define is needed.)
Configure