Define AM_PROG_AR before LT_INIT in configure.ac.