The problem is the theoretically available and the practically available. Not to mention the practicality of fitting such a system on board a ship using WW II technology.
Drawing of the below decks part of the fire control system described in Post #12 once you started fitting radar.
View attachment 575537
This has nowhere near the capabilities (or the weight/volume) requirements of a CIWS type system using WW II technology.
The modern CIWS that started this just needs some clear deck space to bolt it to, a decent amount of sky arc to fire into (to reduce the need for multiple mounts and from the ship.
"The only inputs required for operation are 440
V AC three-phase electric power at 60
Hz and water (for electronics cooling). For full operation, including some nonessential functions, it also has inputs for ship's true compass heading and 115 V AC for the PASS subsystem. "
A WW II version is going to need large amounts of power, dedicated rooms full of vacuum tube (valve) equipement and a slew of technicians to look after it. It is going to need one or more radar antennas, plus the actual gun mount it self and a high speed, stabilized mounting is going to be a very heavy item indeed.
View attachment 575538
Post war twin 40mm STAAG mounting on HMS Diana. some of the STAAG mounts went 17.5 tons.
The US quad mount went about 11-12 tons. manually operated single 40mm guns went about 1 1/4 to 1 1/2 tons.
You are going to need a vastly improved level of accuracy to make up for the weight and volume, assuming you can A) get the thing to work, B) keep it working after weeks at sea.