moved shell command from makefile to configure.ac with ac_check_progs macro