[PATCH 2/3] configure.ac: rename socklen_t_equiv to ac_cv_type_socklen_t_equiv

Otavio Salvador <[email protected]>
Newsgroups gmane.network.rdesktop.devel
Message-ID <[email protected]>
This is required to follow the caching variable names scheme defined
by autoconf.
---
 configure.ac |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/configure.ac b/configure.ac
index e8af5b0..a21c0af 100644
--- a/configure.ac
+++ b/configure.ac
@@ -514,11 +514,11 @@ AC_DEFUN([TYPE_SOCKLEN_T],
 [
    AC_CHECK_TYPE([socklen_t], ,[
       AC_MSG_CHECKING([for socklen_t equivalent])
-      AC_CACHE_VAL([socklen_t_equiv],
+      AC_CACHE_VAL([ac_cv_type_socklen_t_equiv],
       [
          # Systems have either "struct sockaddr *" or
          # "void *" as the second argument to getpeername
-         socklen_t_equiv=
+         ac_cv_type_socklen_t_equiv=
          for arg2 in "struct sockaddr" void; do
             for t in int size_t unsigned long "unsigned long"; do
                AC_TRY_COMPILE([
@@ -530,18 +530,18 @@ AC_DEFUN([TYPE_SOCKLEN_T],
                   $t len;
                   getpeername(0,0,&len);
                ],[
-                  socklen_t_equiv="$t"
+                  ac_cv_type_socklen_t_equiv="$t"
                   break
                ])
             done
          done
 
-         if test "x$socklen_t_equiv" = x; then
+         if test "x$ac_cv_type_socklen_t_equiv" = x; then
             AC_MSG_ERROR([Cannot find a type to use in place of socklen_t])
          fi
       ])
-      AC_MSG_RESULT($socklen_t_equiv)
-      AC_DEFINE_UNQUOTED(socklen_t, $socklen_t_equiv,
+      AC_MSG_RESULT($ac_cv_type_socklen_t_equiv)
+      AC_DEFINE_UNQUOTED(socklen_t, $ac_cv_type_socklen_t_equiv,
 			[type to use in place of socklen_t if not defined])],
       [#include <sys/types.h>
 #include <sys/socket.h>])
-- 
1.6.3.3.385.g60647


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.