/pidgin/main: 91e412d1c275: Replace obsolete AC_TRY_LINK_FUNC ca...

Elliott Sales de Andrade qulogic at pidgin.im
Fri Jan 25 02:16:44 EST 2013


Changeset: 91e412d1c27587191f0ffc5bad9027ebbd4a3640
Author:	 Elliott Sales de Andrade <qulogic at pidgin.im>
Date:	 2013-01-23 23:51 -0500
Branch:	 default
URL: http://hg.pidgin.im/pidgin/main/rev/91e412d1c275

Description:

Replace obsolete AC_TRY_LINK_FUNC calls.

diffstat:

 configure.ac |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (39 lines):

diff --git a/configure.ac b/configure.ac
--- a/configure.ac
+++ b/configure.ac
@@ -1911,7 +1911,7 @@ if test "x$enable_gnutls" != "xno"; then
 		AC_CACHE_CHECK([for GnuTLS libraries], ac_cv_gnutls_libs,
 		[
 			LIBS="$LIBS $with_gnutls_libs -lgnutls"
-			AC_TRY_LINK_FUNC(gnutls_init, ac_cv_gnutls_libs="yes", ac_cv_gnutls_libs="no")
+			AC_LINK_IFELSE([AC_LANG_CALL([], [gnutls_init])], ac_cv_gnutls_libs="yes", ac_cv_gnutls_libs="no")
 			LIBS="$LIBS_save"
 		])
 
@@ -2114,7 +2114,7 @@ if test "x$enable_nss" != "xno"; then
 					LDFLAGS="$LDFLAGS"
 				fi
 
-				AC_TRY_LINK_FUNC(PR_Init,
+				AC_LINK_IFELSE([AC_LANG_CALL([], [PR_Init])],
 					[ac_cv_moz_nspr_libs="yes"],
 					[ac_cv_moz_nspr_libs="no"])
 
@@ -2202,7 +2202,7 @@ if test "x$enable_nss" != "xno"; then
 				LDFLAGS="$LDFLAGS -L$with_nspr_libs -L$with_nss_libs"
 				LIBS="$nsslibs $nsprlibs"
 
-				AC_TRY_LINK_FUNC(NSS_Init,
+				AC_LINK_IFELSE([AC_LANG_CALL([], [NSS_Init])],
 					[ac_cv_moz_nss_libs="yes"],
 					[ac_cv_moz_nss_libs="no"])
 
@@ -2210,7 +2210,7 @@ if test "x$enable_nss" != "xno"; then
 					nsslibs="-lssl3 -lsmime3 -lnss3 -lsoftokn3"
 					LDFLAGS="$LDFLAGS -L$with_nspr_libs -L$with_nss_libs"
 					LIBS="$LIBS $nsslibs"
-					AC_TRY_LINK_FUNC(NSS_Init,
+					AC_LINK_IFELSE([AC_LANG_CALL([], [NSS_Init])],
 						[ac_cv_moz_nss_libs="yes"],
 						[ac_cv_moz_nss_libs="no"])
 				fi



More information about the Commits mailing list