build library with autotools.