Index: configure.ac ================================================================== --- configure.ac +++ configure.ac @@ -57,26 +57,26 @@ have_asprintf="yes" AC_DEFINE(OF_HAVE_ASPRINTF, 1, [Whether we have asprintf]) AC_SUBST(ASPRINTF_DEF, "-DOF_HAVE_ASPRINTF") ], [ have_asprintf="no" - AC_SUBST(ASPRINTF_C, "asprintf.c")]) - -AC_MSG_CHECKING(whether snprintf returns something useful) -AC_CACHE_VAL(ac_cv_snprintf_useful_ret, [ - AC_TRY_RUN([ - #include - - int - main() - { - return (snprintf(NULL, 0, "asd") == 3 ? 0 : 1); - }], - ac_cv_snprintf_useful_ret="yes", - ac_cv_snprintf_useful_ret="no", - ac_cv_snprintf_useful_ret="no")]) -AC_MSG_RESULT($ac_cv_snprintf_useful_ret) + AC_SUBST(ASPRINTF_C, "asprintf.c") + + AC_MSG_CHECKING(whether snprintf returns something useful) + AC_CACHE_VAL(ac_cv_snprintf_useful_ret, [ + AC_TRY_RUN([ + #include + + int + main() + { + return (snprintf(NULL, 0, "asd") == 3 ? 0 : 1); + }], + ac_cv_snprintf_useful_ret="yes", + ac_cv_snprintf_useful_ret="no", + ac_cv_snprintf_useful_ret="no")]) + AC_MSG_RESULT($ac_cv_snprintf_useful_ret)]) test x"$have_asprintf" != x"yes" -a x"$ac_cv_snprintf_useful_ret" != x"yes" && \ AC_MSG_ERROR(No asprintf and no snprintf returning required space!) case "$host" in