configure: Don't depend upon alex in source dist build
This fixes Trac #16860 by verifying that the generated sources don't already
exist before asserting that the alex executable was found. This
replicates the logic already used for happy in the case of alex.
(cherry picked from commit 68dc96a00cc1f4d4d0d5f6520b0ce8f5c240b752)