Use opt_prefix instead of prefix This will remove the dependency on a specific version of libraries.