Check basic commands

The commands will be used in configure/Makefile, check them before
progress further.

Add m4 directory to supply our customized *.m4 file
It is designated by AC_CONFIG_MACRO_DIR([m4]).

Signed-off-by: Kui Shi <skuicloud@gmail.com>