On an eigenvalue problem of Ahmad and Lazer for ordinary differential equations