Patch attached.
Created attachment 3158 [details] Remove malloc test in configure script
This isn't applicable to GPL Ghostscript, which does not use the autoconf defines, so the lack of the expected fallback shouldn't cause a problem. I have however documented that we don't use the results in r8116.