diff options
author | Simon Josefsson <simon@josefsson.org> | 2010-03-31 13:47:05 +0200 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2010-03-31 13:47:05 +0200 |
commit | 1dc13a02db8fc7efe58a4d717d9ace0b2ec449a4 (patch) | |
tree | 765845042bca991bbcf371cd51152a02532c9f9e /libextra | |
parent | 12fbe47f33b6d03ff28ff9bc9e5e9405b110d883 (diff) | |
download | gnutls-1dc13a02db8fc7efe58a4d717d9ace0b2ec449a4.tar.gz |
Update gnulib files.
Diffstat (limited to 'libextra')
-rw-r--r-- | libextra/gl/m4/gnulib-common.m4 | 72 | ||||
-rw-r--r-- | libextra/gl/m4/gnulib-comp.m4 | 22 |
2 files changed, 87 insertions, 7 deletions
diff --git a/libextra/gl/m4/gnulib-common.m4 b/libextra/gl/m4/gnulib-common.m4 index b7812a8962..9cc519e765 100644 --- a/libextra/gl/m4/gnulib-common.m4 +++ b/libextra/gl/m4/gnulib-common.m4 @@ -1,4 +1,4 @@ -# gnulib-common.m4 serial 12 +# gnulib-common.m4 serial 18 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, @@ -37,12 +37,63 @@ AC_DEFUN([gl_COMMON_BODY], [ ]) ]) +# gl_MODULE_INDICATOR_CONDITION +# expands to a C preprocessor expression that evaluates to 1 or 0, depending +# whether a gnulib module that has been requested shall be considered present +# or not. +AC_DEFUN([gl_MODULE_INDICATOR_CONDITION], [1]) + +# gl_MODULE_INDICATOR_SET_VARIABLE([modulename]) +# sets the shell variable that indicates the presence of the given module to +# a C preprocessor expression that will evaluate to 1. +AC_DEFUN([gl_MODULE_INDICATOR_SET_VARIABLE], +[ + GNULIB_[]m4_translit([[$1]], + [abcdefghijklmnopqrstuvwxyz./-], + [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])=gl_MODULE_INDICATOR_CONDITION +]) + # gl_MODULE_INDICATOR([modulename]) -# defines a C macro indicating the presence of the given module. +# defines a C macro indicating the presence of the given module +# in a location where it can be used. +# | Value | Value | +# | in lib/ | in tests/ | +# --------------------------------------------+---------+-----------+ +# Module present among main modules: | 1 | 1 | +# --------------------------------------------+---------+-----------+ +# Module present among tests-related modules: | 0 | 1 | +# --------------------------------------------+---------+-----------+ +# Module not present at all: | 0 | 0 | +# --------------------------------------------+---------+-----------+ AC_DEFUN([gl_MODULE_INDICATOR], [ - AC_DEFINE([GNULIB_]translit([$1],[abcdefghijklmnopqrstuvwxyz./-],[ABCDEFGHIJKLMNOPQRSTUVWXYZ___]), [1], - [Define to 1 when using the gnulib module ]$1[.]) + AC_DEFINE_UNQUOTED([GNULIB_]m4_translit([[$1]], + [abcdefghijklmnopqrstuvwxyz./-], + [ABCDEFGHIJKLMNOPQRSTUVWXYZ___]), + [gl_MODULE_INDICATOR_CONDITION], + [Define to a C preprocessor expression that evaluates to 1 or 0, + depending whether the gnulib module $1 shall be considered present.]) +]) + +# gl_MODULE_INDICATOR_FOR_TESTS([modulename]) +# defines a C macro indicating the presence of the given module +# in lib or tests. This is useful to determine whether the module +# should be tested. +# | Value | Value | +# | in lib/ | in tests/ | +# --------------------------------------------+---------+-----------+ +# Module present among main modules: | 1 | 1 | +# --------------------------------------------+---------+-----------+ +# Module present among tests-related modules: | 1 | 1 | +# --------------------------------------------+---------+-----------+ +# Module not present at all: | 0 | 0 | +# --------------------------------------------+---------+-----------+ +AC_DEFUN([gl_MODULE_INDICATOR_FOR_TESTS], +[ + AC_DEFINE([GNULIB_TEST_]m4_translit([[$1]], + [abcdefghijklmnopqrstuvwxyz./-], + [ABCDEFGHIJKLMNOPQRSTUVWXYZ___]), [1], + [Define to 1 when the gnulib module $1 should be tested.]) ]) # m4_foreach_w @@ -61,9 +112,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/libextra/gl/m4/gnulib-comp.m4 b/libextra/gl/m4/gnulib-comp.m4 index 172ade4df4..ad60507a17 100644 --- a/libextra/gl/m4/gnulib-comp.m4 +++ b/libextra/gl/m4/gnulib-comp.m4 @@ -25,7 +25,14 @@ AC_DEFUN([xgl_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 crypto/hmac-md5: + # Code from module crypto/md5: + # Code from module extensions: AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + # Code from module havelib: + # Code from module lib-msvc-compat: + # Code from module lib-symbol-versions: + # Code from module memxor: ]) # This macro should be invoked from ./configure.ac, in the section @@ -41,11 +48,19 @@ AC_DEFUN([xgl_INIT], m4_pushdef([xgl_LIBSOURCES_DIR], []) gl_COMMON gl_source_base='gl' + # Code from module crypto/hmac-md5: gl_HMAC_MD5 + # Code from module crypto/md5: gl_MD5 + # Code from module extensions: + # Code from module havelib: + # Code from module lib-msvc-compat: gl_LD_OUTPUT_DEF + # Code from module lib-symbol-versions: gl_LD_VERSION_SCRIPT + # Code from module memxor: gl_MEMXOR + # End of code from modules m4_ifval(xgl_LIBSOURCES_LIST, [ m4_syscmd([test ! -d ]m4_defn([xgl_LIBSOURCES_DIR])[ || for gl_file in ]xgl_LIBSOURCES_LIST[ ; do @@ -85,6 +100,13 @@ AC_DEFUN([xgl_INIT], m4_pushdef([xgltests_LIBSOURCES_DIR], []) gl_COMMON gl_source_base='gl/tests' +changequote(,)dnl + xgltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS +changequote([, ])dnl + AC_SUBST([xgltests_WITNESS]) + gl_module_indicator_condition=$xgltests_WITNESS + m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition]) + m4_popdef([gl_MODULE_INDICATOR_CONDITION]) m4_ifval(xgltests_LIBSOURCES_LIST, [ m4_syscmd([test ! -d ]m4_defn([xgltests_LIBSOURCES_DIR])[ || for gl_file in ]xgltests_LIBSOURCES_LIST[ ; do |