With no toolkit, no xrandr, no xinput2 and having i18n, the dpyinfo variable is not created but is used later on, causing the build to fail.

The attached patch fixes the problem.

FYI I should have copyright assignment on file.