package properly with autotools
implement regexp