check library location as done in configure.ac