add ECC support in configure