Only use AM_PROG_AR if defined