Added tests for --print-soname and --set-soname options

Also added clearer help messages for both
configure.ac: replace "echo -n" with more portable AS_ECHO_N

See: http://www.gnu.org/software/autoconf/manual/autoconf.html#echo

Note: AS_ECHO and AS_ECHO_N are available in autoconf since 2.61