diff options
| author | Paul Eggert | 2017-01-01 02:33:29 -0800 |
|---|---|---|
| committer | Paul Eggert | 2017-01-01 02:35:36 -0800 |
| commit | 65eee8392ff95f58f7b0bd036e1fe065523658c6 (patch) | |
| tree | fe19edae158f948c08d3f2600bc776fa5696f94d | |
| parent | aaf1f4a33c96831b9835574b8bfc6f71ec647fdd (diff) | |
| download | emacs-65eee8392ff95f58f7b0bd036e1fe065523658c6.tar.gz emacs-65eee8392ff95f58f7b0bd036e1fe065523658c6.zip | |
Do not use Gnulib’s m4/wint_t.m4.
* admin/merge-gnulib: Remove m4/wint_t.m4 when merging.
Fix typo so that warn-on-use.m4 is removed too.
* configure.ac (gt_TYPE_WINT_T): New macro, replacing Gnulib’s.
* m4/wint_t.m4: Remove.
| -rwxr-xr-x | admin/merge-gnulib | 2 | ||||
| -rw-r--r-- | configure.ac | 4 | ||||
| -rw-r--r-- | m4/wint_t.m4 | 62 |
3 files changed, 5 insertions, 63 deletions
diff --git a/admin/merge-gnulib b/admin/merge-gnulib index 69db30cc41e..20a3240ea89 100755 --- a/admin/merge-gnulib +++ b/admin/merge-gnulib | |||
| @@ -96,7 +96,7 @@ test -x "$gnulib_srcdir"/gnulib-tool || { | |||
| 96 | "$gnulib_srcdir"/gnulib-tool --dir="$src" $GNULIB_TOOL_FLAGS $GNULIB_MODULES && | 96 | "$gnulib_srcdir"/gnulib-tool --dir="$src" $GNULIB_TOOL_FLAGS $GNULIB_MODULES && |
| 97 | rm -- "$src"lib/gl_openssl.h "$src"m4/fcntl-o.m4 \ | 97 | rm -- "$src"lib/gl_openssl.h "$src"m4/fcntl-o.m4 \ |
| 98 | "$src"m4/gl-openssl.m4 \ | 98 | "$src"m4/gl-openssl.m4 \ |
| 99 | "$src"m4/gnulib-cache.m4"$src" m4/warn-on-use.m4 && | 99 | "$src"m4/gnulib-cache.m4 "$src"m4/warn-on-use.m4 "$src"m4/wint_t.m4 && |
| 100 | cp -- "$gnulib_srcdir"/build-aux/texinfo.tex "$src"doc/misc && | 100 | cp -- "$gnulib_srcdir"/build-aux/texinfo.tex "$src"doc/misc && |
| 101 | cp -- "$gnulib_srcdir"/build-aux/move-if-change "$src"build-aux && | 101 | cp -- "$gnulib_srcdir"/build-aux/move-if-change "$src"build-aux && |
| 102 | { test -z "$src" || cd "$src"; } && | 102 | { test -z "$src" || cd "$src"; } && |
diff --git a/configure.ac b/configure.ac index 642cf7b37a9..ce386f6c6c8 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -792,6 +792,10 @@ ac_func_list=$funcs | |||
| 792 | AC_CHECK_FUNCS_ONCE([putenv]) | 792 | AC_CHECK_FUNCS_ONCE([putenv]) |
| 793 | AC_DEFUN([gl_FUNC_PUTENV], | 793 | AC_DEFUN([gl_FUNC_PUTENV], |
| 794 | [test "$ac_cv_func_putenv" = yes || REPLACE_PUTENV=1]) | 794 | [test "$ac_cv_func_putenv" = yes || REPLACE_PUTENV=1]) |
| 795 | # Emacs does not use the wchar or wctype-h modules. | ||
| 796 | AC_DEFUN([gt_TYPE_WINT_T], | ||
| 797 | [GNULIB_OVERRIDES_WINT_T=0 | ||
| 798 | AC_SUBST([GNULIB_OVERRIDES_WINT_T])]) | ||
| 795 | 799 | ||
| 796 | # Initialize gnulib right after choosing the compiler. | 800 | # Initialize gnulib right after choosing the compiler. |
| 797 | dnl Amongst other things, this sets AR and ARFLAGS. | 801 | dnl Amongst other things, this sets AR and ARFLAGS. |
diff --git a/m4/wint_t.m4 b/m4/wint_t.m4 deleted file mode 100644 index 65e25a4c38a..00000000000 --- a/m4/wint_t.m4 +++ /dev/null | |||
| @@ -1,62 +0,0 @@ | |||
| 1 | # wint_t.m4 serial 6 | ||
| 2 | dnl Copyright (C) 2003, 2007-2017 Free Software Foundation, Inc. | ||
| 3 | dnl This file is free software; the Free Software Foundation | ||
| 4 | dnl gives unlimited permission to copy and/or distribute it, | ||
| 5 | dnl with or without modifications, as long as this notice is preserved. | ||
| 6 | |||
| 7 | dnl From Bruno Haible. | ||
| 8 | dnl Test whether <wchar.h> has the 'wint_t' type and whether gnulib's | ||
| 9 | dnl <wchar.h> or <wctype.h> would, if present, override 'wint_t'. | ||
| 10 | dnl Prerequisite: AC_PROG_CC | ||
| 11 | |||
| 12 | AC_DEFUN([gt_TYPE_WINT_T], | ||
| 13 | [ | ||
| 14 | AC_CACHE_CHECK([for wint_t], [gt_cv_c_wint_t], | ||
| 15 | [AC_COMPILE_IFELSE( | ||
| 16 | [AC_LANG_PROGRAM( | ||
| 17 | [[ | ||
| 18 | /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before | ||
| 19 | <wchar.h>. | ||
| 20 | BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included | ||
| 21 | before <wchar.h>. */ | ||
| 22 | #include <stddef.h> | ||
| 23 | #include <stdio.h> | ||
| 24 | #include <time.h> | ||
| 25 | #include <wchar.h> | ||
| 26 | wint_t foo = (wchar_t)'\0';]], | ||
| 27 | [[]])], | ||
| 28 | [gt_cv_c_wint_t=yes], | ||
| 29 | [gt_cv_c_wint_t=no])]) | ||
| 30 | if test $gt_cv_c_wint_t = yes; then | ||
| 31 | AC_DEFINE([HAVE_WINT_T], [1], [Define if you have the 'wint_t' type.]) | ||
| 32 | |||
| 33 | dnl Determine whether gnulib's <wchar.h> or <wctype.h> would, if present, | ||
| 34 | dnl override 'wint_t'. | ||
| 35 | AC_CACHE_CHECK([whether wint_t is too small], | ||
| 36 | [gl_cv_type_wint_t_too_small], | ||
| 37 | [AC_COMPILE_IFELSE( | ||
| 38 | [AC_LANG_PROGRAM([[ | ||
| 39 | /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before | ||
| 40 | <wchar.h>. | ||
| 41 | BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be | ||
| 42 | included before <wchar.h>. */ | ||
| 43 | #if !(defined __GLIBC__ && !defined __UCLIBC__) | ||
| 44 | # include <stddef.h> | ||
| 45 | # include <stdio.h> | ||
| 46 | # include <time.h> | ||
| 47 | #endif | ||
| 48 | #include <wchar.h> | ||
| 49 | int verify[sizeof (wint_t) < sizeof (int) ? -1 : 1]; | ||
| 50 | ]])], | ||
| 51 | [gl_cv_type_wint_t_too_small=no], | ||
| 52 | [gl_cv_type_wint_t_too_small=yes])]) | ||
| 53 | if test $gl_cv_type_wint_t_too_small = yes; then | ||
| 54 | GNULIB_OVERRIDES_WINT_T=1 | ||
| 55 | else | ||
| 56 | GNULIB_OVERRIDES_WINT_T=0 | ||
| 57 | fi | ||
| 58 | else | ||
| 59 | GNULIB_OVERRIDES_WINT_T=0 | ||
| 60 | fi | ||
| 61 | AC_SUBST([GNULIB_OVERRIDES_WINT_T]) | ||
| 62 | ]) | ||