diff options
Diffstat (limited to 'm4/snprintf.m4')
-rw-r--r-- | m4/snprintf.m4 | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/m4/snprintf.m4 b/m4/snprintf.m4 index 335a937..8ab3689 100644 --- a/m4/snprintf.m4 +++ b/m4/snprintf.m4 @@ -11,7 +11,7 @@ dnl Provides RRA_FUNC_SNPRINTF, which adds snprintf.o to LIBOBJS unless a dnl fully working snprintf is found. dnl dnl Written by Russ Allbery <rra@stanford.edu> -dnl Copyright 2006 Board of Trustees, Leland Stanford Jr. University +dnl Copyright 2006, 2008 Board of Trustees, Leland Stanford Jr. University dnl See LICENSE for licensing terms. dnl Source used by RRA_FUNC_SNPRINTF. @@ -47,9 +47,7 @@ AC_DEFUN([RRA_FUNC_SNPRINTF], [rra_cv_func_snprintf_works=yes], [rra_cv_func_snprintf_works=no], [rra_cv_func_snprintf_works=no])]) -if test "$rra_cv_func_snprintf_works" = yes ; then - AC_DEFINE([HAVE_SNPRINTF], 1, - [Define if your system has a working snprintf function.]) -else - AC_LIBOBJ([snprintf]) -fi]) +AS_IF([test "$rra_cv_func_snprintf_works" = yes], + [AC_DEFINE([HAVE_SNPRINTF], 1, + [Define if your system has a working snprintf function.])], + [AC_LIBOBJ([snprintf])])]) |