Index: acinclude.m4 =================================================================== RCS file: /home/freeciv/CVS/freeciv/acinclude.m4,v retrieving revision 1.9 diff -u -r1.9 acinclude.m4 --- acinclude.m4 2001/06/15 20:31:47 1.9 +++ acinclude.m4 2001/06/17 22:24:54 @@ -489,7 +489,7 @@ dnl AC_DEFUN([AC_FUNC_VSNPRINTF], [AC_CACHE_CHECK(for working vsnprintf, - ac_cv_func_vsnprintf, + ac_cv_func_working_vsnprintf, [AC_TRY_RUN( [#include #include @@ -533,11 +533,11 @@ { doit("1234567"); exit(1); -}], ac_cv_func_vsnprintf=yes, ac_cv_func_vsnprintf=no, ac_cv_func_vsnprintf=no)]) +}], ac_cv_func_working_vsnprintf=yes, ac_cv_func_working_vsnprintf=no, ac_cv_func_working_vsnprintf=no)]) dnl Note that the default is to be pessimistic in the case of cross compilation. dnl If you know that the target has a sensible vsnprintf(), you can get around this dnl by setting ac_func_vsnprintf to yes, as described in the Autoconf manual. -if test $ac_cv_func_vsnprintf = yes; then +if test $ac_cv_func_working_vsnprintf = yes; then AC_DEFINE(HAVE_WORKING_VSNPRINTF, 1, [Define if you have a version of the 'vsnprintf' function that honours the size argument and has a proper return value.])