autolibrary.sh: define AM_PROG_AR if it exists
auto{project,library}.sh: include config.h before the others