update automake scripts support build cavan-main

Signed-off-by: Fuang.Cao <cavan.cfa@gmail.com>