put AM_PROG_AR within an ifdef to support older versions of automake