configure: check python2 package

Signed-off-by: Jakub Filak <jfilak@redhat.com>
update configure.ac for new autotools

Signed-off-by: Jakub Filak <jfilak@redhat.com>
autogen: add helper functions for system dependencies

Signed-off-by: Jakub Filak <jfilak@redhat.com>