AM_PROG_AR is not available on old autoconfs

So wrap it in a m4_ifdef.
Also remove diet check as we removed that from the makefile already

Signed-off-by: Sven Nierlein <sven@consol.de>