When linking to a shared library fails, the previous check defined the
<LIB>_LIBRARY_SONAME macro to "none", instead of leaving it undefined.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
AC_CACHE_CHECK([$1 [soname]], [gnutls_cv_soname_[]soname],
[AC_LINK_IFELSE([$2],
[gnutls_cv_soname_[]soname=`(eval "$LDDPROG conftest$EXEEXT $LDDPOSTPROC") | grep '^lib[]$1\.so'`],
- [gnutls_cv_soname_[]soname=none])])
+ [gnutls_cv_soname_[]soname=])])
AS_IF([test -z "$gnutls_cv_soname_[]soname"], [gnutls_cv_soname_[]soname=none],
[SONAME[]_LIBRARY_SONAME="$gnutls_cv_soname_[]soname"
AC_DEFINE_UNQUOTED([SONAME[]_LIBRARY_SONAME], ["$gnutls_cv_soname_[]soname"], [The soname of $1 library])])