Revert "Remove automake init warning"

This reverts commit 30b26e3ed41df19389be95fb5c97df788958ae97.
Merge pull request #1548 from jimis/agent_protocol_version

Revert "Remove automake init warning", which caused a lot of compile warnings