call AM_INIT_AUTOMAKE early

Call AM_INIT_AUTOMAKE early to not break build with Automake >= 1.14, which else would use an undefined $ac_aux_dir.

This fixes the build for Fedora 21 development ( https://bugzilla.redhat.com/1028671 ).