configure.ac: improve libnetsnmpagent detection