diff options
author | Simon Josefsson <simon@josefsson.org> | 2007-05-24 11:42:53 +0000 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2007-05-24 11:42:53 +0000 |
commit | 9d9a376dd296d4eed407c43a453ab5abf249e410 (patch) | |
tree | e5f04efeb3f3c81f6a8e138e0aff8671dcc31077 /lgl/m4 | |
parent | 15d2a5e54c7694aa7a4eeef3a6eebd6855874f07 (diff) | |
download | gnutls-9d9a376dd296d4eed407c43a453ab5abf249e410.tar.gz |
Update.
Diffstat (limited to 'lgl/m4')
-rw-r--r-- | lgl/m4/float_h.m4 | 21 | ||||
-rw-r--r-- | lgl/m4/fseeko.m4 | 12 | ||||
-rw-r--r-- | lgl/m4/gnulib-comp.m4 | 5 | ||||
-rw-r--r-- | lgl/m4/stdio_h.m4 | 25 | ||||
-rw-r--r-- | lgl/m4/vasnprintf.m4 | 57 | ||||
-rw-r--r-- | lgl/m4/vasprintf.m4 | 4 | ||||
-rw-r--r-- | lgl/m4/wint_t.m4 | 2 |
7 files changed, 120 insertions, 6 deletions
diff --git a/lgl/m4/float_h.m4 b/lgl/m4/float_h.m4 new file mode 100644 index 0000000000..36a07dcb1c --- /dev/null +++ b/lgl/m4/float_h.m4 @@ -0,0 +1,21 @@ +# float_h.m4 serial 1 +dnl Copyright (C) 2007 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +AC_DEFUN([gl_FLOAT_H], +[ + AC_REQUIRE([AC_PROG_CC]) + AC_REQUIRE([AC_CANONICAL_HOST]) + FLOAT_H= + case "$host_os" in + beos*) + FLOAT_H=float.h + gl_ABSOLUTE_HEADER([float.h]) + ABSOLUTE_FLOAT_H=\"$gl_cv_absolute_float_h\" + AC_SUBST([ABSOLUTE_FLOAT_H]) + ;; + esac + AC_SUBST([FLOAT_H]) +]) diff --git a/lgl/m4/fseeko.m4 b/lgl/m4/fseeko.m4 index 86d42f40cc..b544e24102 100644 --- a/lgl/m4/fseeko.m4 +++ b/lgl/m4/fseeko.m4 @@ -1,4 +1,4 @@ -# fseeko.m4 serial 1 +# fseeko.m4 serial 2 dnl Copyright (C) 2007 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -8,6 +8,7 @@ AC_DEFUN([gl_FUNC_FSEEKO], [ AC_REQUIRE([gl_STDIO_H_DEFAULTS]) AC_REQUIRE([AC_PROG_CC]) + AC_REQUIRE([gl_STDIN_LARGE_OFFSET]) AC_CACHE_CHECK([for fseeko], [gl_cv_func_fseeko], [ AC_TRY_LINK([#include <stdio.h>], [fseeko (stdin, 0, 0);], @@ -15,5 +16,14 @@ AC_DEFUN([gl_FUNC_FSEEKO], ]) if test $gl_cv_func_fseeko = no; then HAVE_FSEEKO=0 + elif test $gl_cv_var_stdin_large_offset = no; then + gl_REPLACE_FSEEKO fi ]) + +AC_DEFUN([gl_REPLACE_FSEEKO], +[ + AC_LIBOBJ([fseeko]) + AC_REQUIRE([gl_STDIO_H_DEFAULTS]) + REPLACE_FSEEKO=1 +]) diff --git a/lgl/m4/gnulib-comp.m4 b/lgl/m4/gnulib-comp.m4 index d353ee7544..ac0643b3d1 100644 --- a/lgl/m4/gnulib-comp.m4 +++ b/lgl/m4/gnulib-comp.m4 @@ -70,6 +70,7 @@ AC_DEFUN([lgl_INIT], gl_GC_SHA1 gl_MODULE_INDICATOR([gc-sha1]) gl_MD2 + gl_FLOAT_H gl_FUNC_FSEEKO gl_STDIO_MODULE_INDICATOR([fseeko]) gl_FUNC_GETDELIM @@ -154,6 +155,9 @@ AC_DEFUN([lgl_FILE_LIST], [ lib/des.c lib/des.h lib/dummy.c + lib/float+.h + lib/float_.h + lib/fseeko.c lib/gc-gnulib.c lib/gc-libgcrypt.c lib/gc-pbkdf2-sha1.c @@ -217,6 +221,7 @@ AC_DEFUN([lgl_FILE_LIST], [ m4/des.m4 m4/eoverflow.m4 m4/extensions.m4 + m4/float_h.m4 m4/fseeko.m4 m4/gc-arcfour.m4 m4/gc-arctwo.m4 diff --git a/lgl/m4/stdio_h.m4 b/lgl/m4/stdio_h.m4 index c696ee2ee7..2cddcc3313 100644 --- a/lgl/m4/stdio_h.m4 +++ b/lgl/m4/stdio_h.m4 @@ -1,4 +1,4 @@ -# stdio_h.m4 serial 4 +# stdio_h.m4 serial 5 dnl Copyright (C) 2007 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -47,6 +47,29 @@ AC_DEFUN([gl_STDIO_H_DEFAULTS], HAVE_VASPRINTF=1; AC_SUBST([HAVE_VASPRINTF]) REPLACE_VASPRINTF=0; AC_SUBST([REPLACE_VASPRINTF]) HAVE_FSEEKO=1; AC_SUBST([HAVE_FSEEKO]) + REPLACE_FSEEKO=0; AC_SUBST([REPLACE_FSEEKO]) HAVE_FTELLO=1; AC_SUBST([HAVE_FTELLO]) + REPLACE_FTELLO=0; AC_SUBST([REPLACE_FTELLO]) REPLACE_FFLUSH=0; AC_SUBST([REPLACE_FFLUSH]) ]) + +dnl Code shared by fseeko and ftello. Determine if large files are supported, +dnl but stdin does not start as a large file by default. +AC_DEFUN([gl_STDIN_LARGE_OFFSET], + [ + AC_CACHE_CHECK([whether stdin defaults to large file offsets], + [gl_cv_var_stdin_large_offset], + [AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <stdio.h>], +[#if defined __SL64 && defined __SCLE /* cygwin */ + /* Cygwin 1.5.24 and earlier fail to put stdin in 64-bit mode, making + fseeko/ftello needlessly fail. This bug was fixed at the same time + that cygwin started exporting asnprintf (cygwin 1.7.0), so we use + that as a link-time test for cross-compiles rather than building + a runtime test. */ + size_t s; + if (asnprintf (NULL, &s, "")) + return 0; +#endif])], + [gl_cv_var_stdin_large_offset=yes], + [gl_cv_var_stdin_large_offset=no])]) +]) diff --git a/lgl/m4/vasnprintf.m4 b/lgl/m4/vasnprintf.m4 index 41a5ce1800..fa953aaf26 100644 --- a/lgl/m4/vasnprintf.m4 +++ b/lgl/m4/vasnprintf.m4 @@ -1,4 +1,4 @@ -# vasnprintf.m4 serial 15 +# vasnprintf.m4 serial 17 dnl Copyright (C) 2002-2004, 2006-2007 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -59,6 +59,61 @@ AC_DEFUN([gl_PREREQ_VASNPRINTF], AC_CHECK_FUNCS(snprintf wcslen) ]) +# Extra prerequisites of lib/vasnprintf.c for supporting 'long double' +# arguments. +AC_DEFUN([gl_PREREQ_VASNPRINTF_LONG_DOUBLE], +[ + AC_REQUIRE([gl_PRINTF_LONG_DOUBLE]) + case "$gl_cv_func_printf_long_double" in + *yes) + ;; + *) + AC_DEFINE([NEED_PRINTF_LONG_DOUBLE], 1, + [Define if the vasnprintf implementation needs special code for + 'long double' arguments.]) + ;; + esac +]) + +# Extra prerequisites of lib/vasnprintf.c for supporting infinite 'double' +# arguments. +AC_DEFUN([gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE], +[ + AC_REQUIRE([gl_PRINTF_INFINITE]) + case "$gl_cv_func_printf_infinite" in + *yes) + ;; + *) + AC_DEFINE([NEED_PRINTF_INFINITE_DOUBLE], 1, + [Define if the vasnprintf implementation needs special code for + infinite 'double' arguments.]) + ;; + esac +]) + +# Extra prerequisites of lib/vasnprintf.c for supporting infinite 'long double' +# arguments. +AC_DEFUN([gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE], +[ + AC_REQUIRE([gl_PRINTF_INFINITE_LONG_DOUBLE]) + dnl There is no need to set NEED_PRINTF_INFINITE_LONG_DOUBLE if + dnl NEED_PRINTF_LONG_DOUBLE is already set. + AC_REQUIRE([gl_PREREQ_VASNPRINTF_LONG_DOUBLE]) + case "$gl_cv_func_printf_long_double" in + *yes) + case "$gl_cv_func_printf_infinite" in + *yes) + ;; + *) + AC_DEFINE([NEED_PRINTF_INFINITE_LONG_DOUBLE], 1, + [Define if the vasnprintf implementation needs special code for + infinite 'long double' arguments.]) + ;; + esac + ;; + esac +]) + # Extra prerequisites of lib/vasnprintf.c for supporting the 'a' directive. AC_DEFUN([gl_PREREQ_VASNPRINTF_DIRECTIVE_A], [ diff --git a/lgl/m4/vasprintf.m4 b/lgl/m4/vasprintf.m4 index d38c8ede59..4f0c79a71a 100644 --- a/lgl/m4/vasprintf.m4 +++ b/lgl/m4/vasprintf.m4 @@ -1,4 +1,4 @@ -# vasprintf.m4 serial 4 +# vasprintf.m4 serial 5 dnl Copyright (C) 2002-2003, 2006-2007 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -27,7 +27,7 @@ AC_DEFUN([gl_REPLACE_VASPRINTF], gl_PREREQ_ASPRINTF ]) -# Prerequisites of lib/vasprintf.h. +# Prerequisites of the vasprintf portion of lib/stdio.h. AC_DEFUN([gl_PREREQ_VASPRINTF_H], [ dnl Persuade glibc <stdio.h> to declare asprintf() and vasprintf(). diff --git a/lgl/m4/wint_t.m4 b/lgl/m4/wint_t.m4 index 3706c047dd..2cac1a7108 100644 --- a/lgl/m4/wint_t.m4 +++ b/lgl/m4/wint_t.m4 @@ -1,4 +1,4 @@ -# wint_t.m4 serial 2 (gettext-0.12) +# wint_t.m4 serial 2 (gettext-0.16.2) dnl Copyright (C) 2003, 2007 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, |