update configure.ac, check for libmagic.