From 5454988b9b653c6e4e17cd84465c0121846ede7e Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Thu, 29 Apr 2010 03:22:36 +0200 Subject: Fix autoconf warning, rename variable to allow caching. --- m4-local/gethostbyname_r.m4 | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'm4-local') diff --git a/m4-local/gethostbyname_r.m4 b/m4-local/gethostbyname_r.m4 index 94f36dba..980bd700 100644 --- a/m4-local/gethostbyname_r.m4 +++ b/m4-local/gethostbyname_r.m4 @@ -16,7 +16,7 @@ dnl based on David Arnold's autoconf suggestion in the threads faq dnl AC_DEFUN([ACX_WHICH_GETHOSTBYNAME_R], [AC_CACHE_CHECK(number of arguments to gethostbyname_r, - acx_which_gethostbyname_r, [ + acx_cv_which_gethostbyname_r, [ AC_TRY_LINK([ # include ], [ @@ -26,9 +26,9 @@ AC_DEFUN([ACX_WHICH_GETHOSTBYNAME_R], struct hostent_data data; (void) gethostbyname_r(name, he, &data); - ],acx_which_gethostbyname_r=3, + ],acx_cv_which_gethostbyname_r=3, [ -dnl acx_which_gethostbyname_r=0 +dnl acx_cv_which_gethostbyname_r=0 AC_TRY_LINK([ # include ], [ @@ -38,10 +38,10 @@ dnl acx_which_gethostbyname_r=0 int buflen = 2048; int h_errnop; (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) - ],acx_which_gethostbyname_r=6, + ],acx_cv_which_gethostbyname_r=6, [ -dnl acx_which_gethostbyname_r=0 +dnl acx_cv_which_gethostbyname_r=0 AC_TRY_LINK([ # include ], [ @@ -51,7 +51,7 @@ dnl acx_which_gethostbyname_r=0 int buflen = 2048; int h_errnop; (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) - ],acx_which_gethostbyname_r=5,acx_which_gethostbyname_r=0) + ],acx_cv_which_gethostbyname_r=5,acx_cv_which_gethostbyname_r=0) ] @@ -60,8 +60,8 @@ dnl acx_which_gethostbyname_r=0 ) ]) -if test $acx_which_gethostbyname_r -gt 0 ; then - AC_DEFINE_UNQUOTED([HAVE_GETHOSTBYNAME_R], $acx_which_gethostbyname_r, +if test $acx_cv_which_gethostbyname_r -gt 0 ; then + AC_DEFINE_UNQUOTED([HAVE_GETHOSTBYNAME_R], $acx_cv_which_gethostbyname_r, [Number of parameters to gethostbyname_r or 0 if not available]) fi -- cgit v1.2.3