summaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
authorKevin Ryde <user42@zip.com.au>2001-10-26 01:38:01 +0200
committerKevin Ryde <user42@zip.com.au>2001-10-26 01:38:01 +0200
commit207c177a9507576a7cf5e38a7072b66e6148e61a (patch)
treeae8b35693f5764b9ab43d7826171ef643410d0cc /acinclude.m4
parent603eee8284f4bb39492c1a97fc8d98c4c0514b3c (diff)
downloadgmp-207c177a9507576a7cf5e38a7072b66e6148e61a.tar.gz
* printf/repl-vsnprintf.c: New file.
* configure.in, acinclude.m4, Makefile.am, printf/Makefile.am: Use it if libc vsnprintf missing or bad. * acinclude.m4 (GMP_FUNC_VSNPRINTF): Remove warning about omissions when vsnprintf not available.
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m415
1 files changed, 3 insertions, 12 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 6c765065e..002f54f23 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -1850,7 +1850,9 @@ AC_DEFUN(GMP_FUNC_VSNPRINTF,
AC_CHECK_FUNC(vsnprintf,
[gmp_vsnprintf_exists=yes],
[gmp_vsnprintf_exists=no])
-if test "$gmp_vsnprintf_exists" = yes; then
+if test "$gmp_vsnprintf_exists" = no; then
+ gmp_cv_func_vsnprintf=no
+else
AC_CACHE_CHECK([whether vsnprintf works],
gmp_cv_func_vsnprintf,
[AC_TRY_RUN([
@@ -1908,17 +1910,6 @@ main ()
[Define if you have vsnprintf and it works properly.])
fi
fi
-case $gmp_cv_func_vsnprintf in
- yes|probably) ;;
- *)
- AC_MSG_WARN([+----------------------------------------------------------])
- AC_MSG_WARN([| WARNING WARNING WARNING])
- AC_MSG_WARN([| Usable C library vsnprintf is not available.])
- AC_MSG_WARN([| The following GMP functions will not be built:])
- AC_MSG_WARN([| gmp_asprintf, gmp_snprintf, gmp_vasprintf, gmp_vsnprintf])
- AC_MSG_WARN([+----------------------------------------------------------])
- ;;
-esac
])