Index: libssp/configure.ac
===================================================================
--- libssp/configure.ac	(revision 201269)
+++ libssp/configure.ac	(working copy)
@@ -125,32 +125,11 @@
   AC_CHECK_FUNCS(memmove mempcpy strncpy strncat)
 fi
 
-AC_MSG_CHECKING([whether vsnprintf is usable])
-AC_RUN_IFELSE(AC_LANG_PROGRAM([
-#include <stdarg.h>
-#include <string.h>
-#include <stdio.h>
-int foo (char *buf, size_t n, const char *fmt, ...)
-{
-  va_list ap;
-  int ret;
-  va_start (ap, fmt);
-  ret = vsnprintf (buf, n, fmt, ap);
-  va_end (ap);
-  return ret;
-}],
-[char buf@<:@8@:>@; memset (buf, 'A', sizeof (buf));
- if (foo (buf, 4, ".%s.", "CDEFG") != 7)
-   return 1;
- return memcmp (buf, ".CD\0AAAA", sizeof (buf)) != 0;]),
+AC_CHECK_FUNC(vsnprintf,
 [ssp_have_usable_vsnprintf=define],
-[ssp_have_usable_vsnprintf=undef],
 [ssp_have_usable_vsnprintf=undef])
 if test "x$ssp_have_usable_vsnprintf" = xdefine; then
-  AC_MSG_RESULT(yes)
-  AC_DEFINE([HAVE_USABLE_VSNPRINTF],[1],[vsnprintf is present and works])
-else
-  AC_MSG_RESULT(no)
+  AC_DEFINE([HAVE_USABLE_VSNPRINTF],[1],[vsnprintf is present])
 fi
 AC_SUBST(ssp_have_usable_vsnprintf)
 
Index: libssp/configure
===================================================================
--- libssp/configure	(revision 201269)
+++ libssp/configure	(working copy)
@@ -4505,55 +4505,17 @@
 
 fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf is usable" >&5
-$as_echo_n "checking whether vsnprintf is usable... " >&6; }
-if test "$cross_compiling" = yes; then :
-  ssp_have_usable_vsnprintf=undef
-else
-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-
-#include <stdarg.h>
-#include <string.h>
-#include <stdio.h>
-int foo (char *buf, size_t n, const char *fmt, ...)
-{
-  va_list ap;
-  int ret;
-  va_start (ap, fmt);
-  ret = vsnprintf (buf, n, fmt, ap);
-  va_end (ap);
-  return ret;
-}
-int
-main ()
-{
-char buf[8]; memset (buf, 'A', sizeof (buf));
- if (foo (buf, 4, ".%s.", "CDEFG") != 7)
-   return 1;
- return memcmp (buf, ".CD\0AAAA", sizeof (buf)) != 0;
-  ;
-  return 0;
-}
-_ACEOF
-if ac_fn_c_try_run "$LINENO"; then :
+ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
+if test "x$ac_cv_func_vsnprintf" = x""yes; then :
   ssp_have_usable_vsnprintf=define
 else
   ssp_have_usable_vsnprintf=undef
 fi
-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
-  conftest.$ac_objext conftest.beam conftest.$ac_ext
-fi
 
 if test "x$ssp_have_usable_vsnprintf" = xdefine; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
-$as_echo "yes" >&6; }
 
 $as_echo "#define HAVE_USABLE_VSNPRINTF 1" >>confdefs.h
 
-else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
 fi
 
 
@@ -10658,7 +10620,7 @@
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 10661 "configure"
+#line 10623 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -10764,7 +10726,7 @@
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 10767 "configure"
+#line 10729 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
