> I stumbled on to this because I had an perl directory.
> I know you probably have worked out your own fix and this probably
> won't fit with your plans, but c'est la vie.
Actually, the problem is that your patch isn't really a fix.
The reason the use of -x was introduced, was that that test allowed
autoconf to find foo.exe on DOSish systems simply by testing for foo.
So re-adding -f to the test would negate that extra feature.
It seems to be difficult to formulate a test that will DTRT on
all platforms.