--------------------- PatchSet 5710 Date: 2007/09/18 04:48:08 Author: amosjeffries Branch: squid3-ipv6 Tag: (none) Log: Fix compile error on systems where _res_ext is not defined. - using () in autoconf macros requires [] around the whole macro name. Members: configure.in:1.63.2.57->1.63.2.58 Index: squid3/configure.in =================================================================== RCS file: /cvsroot/squid-sf//squid3/configure.in,v retrieving revision 1.63.2.57 retrieving revision 1.63.2.58 diff -u -r1.63.2.57 -r1.63.2.58 --- squid3/configure.in 14 Sep 2007 12:48:54 -0000 1.63.2.57 +++ squid3/configure.in 18 Sep 2007 04:48:08 -0000 1.63.2.58 @@ -1,7 +1,7 @@ dnl Configuration input file for Squid dnl -dnl $Id: configure.in,v 1.63.2.57 2007/09/14 12:48:54 amosjeffries Exp $ +dnl $Id: configure.in,v 1.63.2.58 2007/09/18 04:48:08 amosjeffries Exp $ dnl dnl dnl @@ -11,7 +11,7 @@ AC_CONFIG_AUX_DIR(cfgaux) AC_CONFIG_SRCDIR([src/main.cc]) AM_INIT_AUTOMAKE([tar-ustar]) -AC_REVISION($Revision: 1.63.2.57 $)dnl +AC_REVISION($Revision: 1.63.2.58 $)dnl AC_PREFIX_DEFAULT(/usr/local/squid) AM_MAINTAINER_MODE @@ -3253,7 +3253,7 @@ fi fi -dnl Detect what resolver fields we need to use... +dnl Detect what resolver fields we have available to use... AC_CACHE_CHECK(for _res_ext.nsaddr_list, ac_cv_have_res_ext_nsaddr_list, AC_TRY_COMPILE([ #if HAVE_SYS_TYPES_H @@ -3276,7 +3276,7 @@ ac_cv_have_res_ext_nsaddr_list="yes", ac_cv_have_res_ext_nsaddr_list="no")) if test "$ac_cv_have_res_ext_nsaddr_list" = "yes" ; then - AC_DEFINE(_SQUID_RES_NSADDR6_LIST(i),_res_ext.nsaddr_list[[(i)]].sin6_addr,[If _res_ext structure has nsaddr_list member]) + AC_DEFINE([_SQUID_RES_NSADDR6_LIST(i)],[_res_ext.nsaddr_list[[(i)]].sin6_addr],[If _res_ext structure has nsaddr_list member]) AC_DEFINE(_SQUID_RES_NSADDR6_COUNT,ns6count,[Nameserver Counter for IPv6 _res_ext]) fi @@ -3303,7 +3303,7 @@ ac_cv_have_res_ext_nsaddrs="yes", ac_cv_have_res_ext_nsaddrs="no")) if test "$ac_cv_have_res_ext_nsaddrs" = "yes" ; then - AC_DEFINE(_SQUID_RES_NSADDR6_LIST(i),[_res._u._ext.nsaddrs[[(i)]]->sin6_addr],[If _res structure has _ext.nsaddrs member]) + AC_DEFINE([_SQUID_RES_NSADDR6_LIST(i)],[_res._u._ext.nsaddrs[[(i)]]->sin6_addr],[If _res structure has _ext.nsaddrs member]) AC_DEFINE(_SQUID_RES_NSADDR6_COUNT,[_res._u._ext.nscount6],[Nameserver Counter for IPv6 _res]) fi fi