configure: check for libperl.so, and do not try to build perl module if ...

...not present.

Most ancient and modern Unices have perl interpreter installed, but not all of them have
libperl.so installed by default.