diff options
author | Kevin Ryde <user42@zip.com.au> | 2001-10-26 01:36:02 +0200 |
---|---|---|
committer | Kevin Ryde <user42@zip.com.au> | 2001-10-26 01:36:02 +0200 |
commit | 603eee8284f4bb39492c1a97fc8d98c4c0514b3c (patch) | |
tree | 5265c7587adddd3d8e0a6a66afbba0cba6ff8817 /configure.in | |
parent | f9476ecfeb0a44223b8025ba9b0f1a7e35084b28 (diff) | |
download | gmp-603eee8284f4bb39492c1a97fc8d98c4c0514b3c.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.
* configure.in (AC_CHECK_FUNCS): Add strnlen.
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/configure.in b/configure.in index b02832209..5e009f886 100644 --- a/configure.in +++ b/configure.in @@ -1421,8 +1421,15 @@ case $host in m68*-*-netbsd1.4*) ac_cv_func_getrusage=no ;; esac -AC_CHECK_FUNCS(alarm getpagesize getrusage gettimeofday localeconv memset mmap mprotect obstack_vprintf popen processor_info read_real_time strchr strtoul sysconf sysctl sysctlbyname times) +AC_CHECK_FUNCS(alarm getpagesize getrusage gettimeofday localeconv memset mmap mprotect obstack_vprintf popen processor_info read_real_time strchr strnlen strtoul sysconf sysctl sysctlbyname times) + +# FIXME: Would have done this with an AM_CONDITIONAL, but automake 1.5 +# doesn't like that under libgmp_la_DEPENDENCIES. GMP_FUNC_VSNPRINTF +if test "$gmp_cv_func_vsnprintf" = no; then + AC_SUBST(REPL_VSNPRINTF_PRINTF_OBJ, 'printf/repl-vsnprintf$U.lo') + AC_SUBST(REPL_VSNPRINTF_OBJ, 'repl-vsnprintf$U.lo') +fi # Pick the correct source files in $path and link them to mpn/. |