diff options
author | Simon Josefsson <simon@josefsson.org> | 2007-08-07 16:06:03 +0200 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2007-08-07 16:06:03 +0200 |
commit | 9339dc2e2aa975b896ab2911b76eae38777571ce (patch) | |
tree | f562b6fd4893fbd9cf4eb4b3b72c24b54873603a /lgl | |
parent | 3ed8cd3f62d4de501003469dad50d08381b048e3 (diff) | |
download | gnutls-9339dc2e2aa975b896ab2911b76eae38777571ce.tar.gz |
Update gnulib files.
Diffstat (limited to 'lgl')
-rw-r--r-- | lgl/Makefile.am | 11 | ||||
-rw-r--r-- | lgl/m4/gnulib-cache.m4 | 2 | ||||
-rw-r--r-- | lgl/m4/include_next.m4 | 28 | ||||
-rw-r--r-- | lgl/m4/stdint.m4 | 12 |
4 files changed, 47 insertions, 6 deletions
diff --git a/lgl/Makefile.am b/lgl/Makefile.am index a143df0719..5e848a0a79 100644 --- a/lgl/Makefile.am +++ b/lgl/Makefile.am @@ -232,6 +232,8 @@ EXTRA_liblgnu_la_SOURCES += getpass.c # "gettextize --intl". AM_CPPFLAGS += -I$(top_builddir)/intl +EXTRA_DIST += $(top_srcdir)/build-aux/config.rpath + ## end gnulib module gettext ## begin gnulib module gettext-h @@ -240,10 +242,19 @@ liblgnu_la_SOURCES += gettext.h ## end gnulib module gettext-h +## begin gnulib module havelib + + +EXTRA_DIST += $(top_srcdir)/build-aux/config.rpath + +## end gnulib module havelib + ## begin gnulib module link-warning LINK_WARNING_H=$(top_srcdir)/build-aux/link-warning.h +EXTRA_DIST += $(top_srcdir)/build-aux/link-warning.h + ## end gnulib module link-warning ## begin gnulib module lseek diff --git a/lgl/m4/gnulib-cache.m4 b/lgl/m4/gnulib-cache.m4 index 8ec811a26f..7b91411d1b 100644 --- a/lgl/m4/gnulib-cache.m4 +++ b/lgl/m4/gnulib-cache.m4 @@ -23,6 +23,7 @@ gl_MODULES([crypto/gc crypto/gc-arcfour crypto/gc-arctwo crypto/gc-des crypto/gc gl_AVOID([]) gl_SOURCE_BASE([lgl]) gl_M4_BASE([lgl/m4]) +gl_PO_BASE([]) gl_DOC_BASE([doc]) gl_TESTS_BASE([tests]) gl_LIB([liblgnu]) @@ -30,3 +31,4 @@ gl_LGPL gl_MAKEFILE_NAME([]) gl_LIBTOOL gl_MACRO_PREFIX([lgl]) +gl_PO_DOMAIN([]) diff --git a/lgl/m4/include_next.m4 b/lgl/m4/include_next.m4 index 4dc84c958c..7ce472bc0a 100644 --- a/lgl/m4/include_next.m4 +++ b/lgl/m4/include_next.m4 @@ -1,4 +1,4 @@ -# include_next.m4 serial 3 +# include_next.m4 serial 4 dnl Copyright (C) 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, @@ -11,9 +11,31 @@ AC_DEFUN([gl_INCLUDE_NEXT], AC_LANG_PREPROC_REQUIRE() AC_CACHE_CHECK([whether the preprocessor supports include_next], [gl_cv_have_include_next], - [AC_PREPROC_IFELSE([#include_next <stddef.h>], + [rm -rf conftestd1 conftestd2 + mkdir conftestd1 conftestd2 + cat <<EOF > conftestd1/conftest.h +#define DEFINED_IN_CONFTESTD1 +#include_next <conftest.h> +#ifdef DEFINED_IN_CONFTESTD2 +int foo; +#else +#error "include_next doesn't work" +#endif +EOF + cat <<EOF > conftestd2/conftest.h +#ifndef DEFINED_IN_CONFTESTD1 +#error "include_next test doesn't work" +#endif +#define DEFINED_IN_CONFTESTD2 +EOF + save_CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CPPFLAGS -Iconftestd1 -Iconftestd2" + AC_COMPILE_IFELSE([#include <conftest.h>], [gl_cv_have_include_next=yes], - [gl_cv_have_include_next=no])]) + [gl_cv_have_include_next=no]) + CPPFLAGS="$save_CPPFLAGS" + rm -rf conftestd1 conftestd2 + ]) if test $gl_cv_have_include_next = yes; then dnl FIXME: Remove HAVE_INCLUDE_NEXT and update everything that uses it diff --git a/lgl/m4/stdint.m4 b/lgl/m4/stdint.m4 index e8016bdd7e..03bb093202 100644 --- a/lgl/m4/stdint.m4 +++ b/lgl/m4/stdint.m4 @@ -1,4 +1,4 @@ -# stdint.m4 serial 27 +# stdint.m4 serial 28 dnl Copyright (C) 2001-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,12 +59,18 @@ AC_DEFUN([gl_STDINT_H], [gl_cv_header_working_stdint_h], [gl_cv_header_working_stdint_h=no AC_COMPILE_IFELSE([ - AC_LANG_PROGRAM([gl_STDINT_INCLUDES - [ + AC_LANG_PROGRAM([[ #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */ #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */ #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */ #include <stdint.h> +/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */ +#if !(defined WCHAR_MIN && defined WCHAR_MAX) +#error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>" +#endif +] +gl_STDINT_INCLUDES +[ #ifdef INT8_MAX int8_t a1 = INT8_MAX; int8_t a1min = INT8_MIN; |