diff options
author | Kevin Ryde <user42@zip.com.au> | 2001-11-24 21:57:03 +0100 |
---|---|---|
committer | Kevin Ryde <user42@zip.com.au> | 2001-11-24 21:57:03 +0100 |
commit | 7b8df46a03d6615828bc70358a76ecdf7d7fa6e1 (patch) | |
tree | ecd58662ff1e84dc50746befbb0fbc89b508781d /acinclude.m4 | |
parent | c559abb729dd8f645e6af2192db1fda106c8f9ec (diff) | |
download | gmp-7b8df46a03d6615828bc70358a76ecdf7d7fa6e1.tar.gz |
* acinclude.m4, configure.in (GMP_FUNC_SSCANF_WRITABLE_INPUT): New
test.
Diffstat (limited to 'acinclude.m4')
-rw-r--r-- | acinclude.m4 | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index aac64c849..405d17f39 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -1843,6 +1843,30 @@ AC_SUBST(TAL_OBJECT) ]) +dnl GMP_FUNC_SSCANF_WRITABLE_INPUT +dnl ------------------------------ +dnl Determine whether sscanf requires a writable input string. +dnl +dnl FIXME: Run a program to try this, when doing a native build. + +AC_DEFUN(GMP_FUNC_SSCANF_WRITABLE_INPUT, +[AC_CACHE_CHECK([whether sscanf needs writable input], + gmp_cv_func_sscanf_writable_input, +[case $host in + *-*-hpux9 | *-*-hpux9.*) + gmp_cv_func_sscanf_writable_input=yes ;; + *) gmp_cv_func_sscanf_writable_input=no ;; +esac +]) +case $gmp_cv_func_sscanf_writable_input in + yes) AC_DEFINE(SSCANF_WRITABLE_INPUT, 1, + [Define if sscanf requires writable inputs]) ;; + no) ;; + *) AC_MSG_ERROR([unrecognised \$gmp_cv_func_sscanf_writable_input]) ;; +esac +]) + + dnl GMP_FUNC_VSNPRINTF dnl ------------------ dnl Check whether vsnprintf exists, and works properly. |