integrate into autotools and cmake