diff options
author | Simon Josefsson <simon@josefsson.org> | 2010-03-15 13:58:17 +0100 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2010-03-15 13:58:17 +0100 |
commit | ad76f0cee5f0a293fb05935574ac2f16b8080ebc (patch) | |
tree | 0bccdabddba68cf3c7fc49d34d1a46d54737e54e /lib/glm4 | |
parent | 8a5d86b1bcbc09012f8cf8a7ddfc3bd742ca17db (diff) | |
download | libtasn1-ad76f0cee5f0a293fb05935574ac2f16b8080ebc.tar.gz libtasn1-ad76f0cee5f0a293fb05935574ac2f16b8080ebc.tar.bz2 libtasn1-ad76f0cee5f0a293fb05935574ac2f16b8080ebc.zip |
Update gnulib files.
Diffstat (limited to 'lib/glm4')
-rw-r--r-- | lib/glm4/gnulib-common.m4 | 15 | ||||
-rw-r--r-- | lib/glm4/gnulib-comp.m4 | 25 | ||||
-rw-r--r-- | lib/glm4/warn-on-use.m4 | 8 | ||||
-rw-r--r-- | lib/glm4/wchar_h.m4 (renamed from lib/glm4/wchar.m4) | 4 |
4 files changed, 42 insertions, 10 deletions
diff --git a/lib/glm4/gnulib-common.m4 b/lib/glm4/gnulib-common.m4 index b7812a8..80ba263 100644 --- a/lib/glm4/gnulib-common.m4 +++ b/lib/glm4/gnulib-common.m4 @@ -1,4 +1,4 @@ -# gnulib-common.m4 serial 12 +# gnulib-common.m4 serial 13 dnl Copyright (C) 2007-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -61,9 +61,16 @@ m4_ifndef([AS_VAR_IF], [AS_IF([test x"AS_VAR_GET([$1])" = x""$2], [$3], [$4])])]) # AC_PROG_MKDIR_P -# is a backport of autoconf-2.60's AC_PROG_MKDIR_P. -# Remove this macro when we can assume autoconf >= 2.60. -m4_ifdef([AC_PROG_MKDIR_P], [], [ +# is a backport of autoconf-2.60's AC_PROG_MKDIR_P, with a fix +# for interoperability with automake-1.9.6 from autoconf-2.62. +# Remove this macro when we can assume autoconf >= 2.62 or +# autoconf >= 2.60 && automake >= 1.10. +m4_ifdef([AC_PROG_MKDIR_P], [ + dnl For automake-1.9.6 && autoconf < 2.62: Ensure MKDIR_P is AC_SUBSTed. + m4_define([AC_PROG_MKDIR_P], + m4_defn([AC_PROG_MKDIR_P])[ + AC_SUBST([MKDIR_P])])], [ + dnl For autoconf < 2.60: Backport of AC_PROG_MKDIR_P. AC_DEFUN_ONCE([AC_PROG_MKDIR_P], [AC_REQUIRE([AM_PROG_MKDIR_P])dnl defined by automake MKDIR_P='$(mkdir_p)' diff --git a/lib/glm4/gnulib-comp.m4 b/lib/glm4/gnulib-comp.m4 index bb56f12..96f8d58 100644 --- a/lib/glm4/gnulib-comp.m4 +++ b/lib/glm4/gnulib-comp.m4 @@ -25,6 +25,16 @@ AC_DEFUN([lgl_EARLY], m4_pattern_allow([^gl_LIBOBJS$])dnl a variable m4_pattern_allow([^gl_LTLIBOBJS$])dnl a variable AC_REQUIRE([AC_PROG_RANLIB]) + # Code from module arg-nonnull: + # Code from module c++defs: + # Code from module include_next: + # Code from module lib-symbol-versions: + # Code from module lib-symbol-visibility: + # Code from module multiarch: + # Code from module stddef: + # Code from module stdint: + # Code from module warn-on-use: + # Code from module wchar: ]) # This macro should be invoked from ./configure.ac, in the section @@ -40,12 +50,24 @@ AC_DEFUN([lgl_INIT], m4_pushdef([lgl_LIBSOURCES_DIR], []) gl_COMMON gl_source_base='lib/gllib' + # Code from module arg-nonnull: + # Code from module c++defs: + # Code from module include_next: + # Code from module lib-symbol-versions: gl_LD_VERSION_SCRIPT + # Code from module lib-symbol-visibility: gl_VISIBILITY + # Code from module multiarch: gl_MULTIARCH + # Code from module stddef: gl_STDDEF_H + # Code from module stdint: gl_STDINT_H + # Code from module warn-on-use: + # Code from module wchar: gl_WCHAR_H + # Code from module dummy: + # End of code from modules m4_ifval(lgl_LIBSOURCES_LIST, [ m4_syscmd([test ! -d ]m4_defn([lgl_LIBSOURCES_DIR])[ || for gl_file in ]lgl_LIBSOURCES_LIST[ ; do @@ -175,6 +197,7 @@ AC_DEFUN([lgltests_LIBSOURCES], [ # gnulib-tool and may be removed by future gnulib-tool invocations. AC_DEFUN([lgl_FILE_LIST], [ build-aux/arg-nonnull.h + build-aux/c++defs.h build-aux/warn-on-use.h lib/dummy.c lib/stddef.in.h @@ -190,7 +213,7 @@ AC_DEFUN([lgl_FILE_LIST], [ m4/stdint.m4 m4/visibility.m4 m4/warn-on-use.m4 - m4/wchar.m4 + m4/wchar_h.m4 m4/wchar_t.m4 m4/wint_t.m4 ]) diff --git a/lib/glm4/warn-on-use.m4 b/lib/glm4/warn-on-use.m4 index ab46422..42daae8 100644 --- a/lib/glm4/warn-on-use.m4 +++ b/lib/glm4/warn-on-use.m4 @@ -1,4 +1,4 @@ -# warn-on-use.m4 serial 1 +# warn-on-use.m4 serial 2 dnl Copyright (C) 2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -30,12 +30,12 @@ AC_DEFUN([gl_WARN_ON_USE_PREPARE], for gl_func in m4_flatten([$2]); do AS_VAR_PUSHDEF([gl_Symbol], [gl_cv_have_raw_decl_$gl_func])dnl AC_CACHE_CHECK([whether $gl_func is declared without a macro], - [gl_Symbol], + gl_Symbol, [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([$1], [@%:@undef $gl_func (void) $gl_func;])], - [AS_VAR_SET([gl_Symbol], [yes])], [AS_VAR_SET([gl_Symbol], [no])])]) - AS_VAR_IF([gl_Symbol], [yes], + [AS_VAR_SET(gl_Symbol, [yes])], [AS_VAR_SET(gl_Symbol, [no])])]) + AS_VAR_IF(gl_Symbol, [yes], [AC_DEFINE_UNQUOTED(AS_TR_CPP([HAVE_RAW_DECL_$gl_func]), [1]) dnl shortcut - if the raw declaration exists, then set a cache dnl variable to allow skipping any later AC_CHECK_DECL efforts diff --git a/lib/glm4/wchar.m4 b/lib/glm4/wchar_h.m4 index e81485d..0bce51c 100644 --- a/lib/glm4/wchar.m4 +++ b/lib/glm4/wchar_h.m4 @@ -7,7 +7,7 @@ dnl with or without modifications, as long as this notice is preserved. dnl Written by Eric Blake. -# wchar.m4 serial 31 +# wchar_h.m4 serial 32 AC_DEFUN([gl_WCHAR_H], [ @@ -108,6 +108,8 @@ AC_DEFUN([gl_WCHAR_MODULE_INDICATOR], dnl Use AC_REQUIRE here, so that the default settings are expanded once only. AC_REQUIRE([gl_WCHAR_H_DEFAULTS]) GNULIB_[]m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./-],[ABCDEFGHIJKLMNOPQRSTUVWXYZ___])=1 + dnl Define it also as a C macro, for the benefit of the unit tests. + gl_MODULE_INDICATOR([$1]) ]) AC_DEFUN([gl_WCHAR_H_DEFAULTS], |