add ECC support in configure
Merge branch 'ecc' into work