aboutsummaryrefslogtreecommitdiffstats
path: root/macros/gnome-support.m4
diff options
context:
space:
mode:
Diffstat (limited to 'macros/gnome-support.m4')
-rw-r--r--macros/gnome-support.m45
1 files changed, 5 insertions, 0 deletions
diff --git a/macros/gnome-support.m4 b/macros/gnome-support.m4
index 67478a8c1d..71463287c1 100644
--- a/macros/gnome-support.m4
+++ b/macros/gnome-support.m4
@@ -25,6 +25,11 @@ AC_DEFUN([GNOME_SUPPORT_CHECKS],[
AC_TRY_LINK([#include <errno.h>],[
char *foo = program_invocation_name], [
AC_DEFINE(HAVE_PROGRAM_INVOCATION_NAME)])
+
+ AC_CHECK_FUNCS(vsnprintf,,[
+ AC_CHECK_FUNCS(__vsnprintf,
+ LIBOBJS="$LIBOBJS easy-vsnprintf.o",LIBOBJS="$LIBOBJS vsnprint.o")])
+
AC_REPLACE_FUNCS(strtok_r strcasecmp strndup strnlen)
if test "$LIBOBJS" != ""; then