mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
Update from Gnulib by running admin/merge-gnulib
This commit is contained in:
parent
30335bb734
commit
71ee484cac
37 changed files with 723 additions and 343 deletions
|
|
@ -1,5 +1,5 @@
|
|||
# gnulib-common.m4
|
||||
# serial 107
|
||||
# serial 109
|
||||
dnl Copyright (C) 2007-2025 Free Software Foundation, Inc.
|
||||
dnl This file is free software; the Free Software Foundation
|
||||
dnl gives unlimited permission to copy and/or distribute it,
|
||||
|
|
@ -20,6 +20,20 @@ AC_DEFUN([gl_COMMON_BODY], [
|
|||
AH_VERBATIM([0witness],
|
||||
[/* Witness that <config.h> has been included. */
|
||||
#define _GL_CONFIG_H_INCLUDED 1
|
||||
])
|
||||
dnl Avoid warnings from gcc -Wtrailing-whitespace.
|
||||
dnl This is a temporary workaround until Autoconf fixes it.
|
||||
dnl Test case:
|
||||
dnl empty1=; empty2=; AC_DEFINE_UNQUOTED([FOO], [$empty1$empty2], [...])
|
||||
dnl should produce "#define FOO /**/", not "#define FOO ".
|
||||
AH_TOP([#if defined __GNUC__ && __GNUC__ >= 15 && !defined __clang__
|
||||
# pragma GCC diagnostic push
|
||||
# pragma GCC diagnostic ignored "-Wtrailing-whitespace"
|
||||
#endif
|
||||
])
|
||||
AH_BOTTOM([#if defined __GNUC__ && __GNUC__ >= 15 && !defined __clang__
|
||||
# pragma GCC diagnostic pop
|
||||
#endif
|
||||
])
|
||||
AH_VERBATIM([_GL_GNUC_PREREQ],
|
||||
[/* True if the compiler says it groks GNU C version MAJOR.MINOR.
|
||||
|
|
@ -1304,7 +1318,7 @@ AC_DEFUN([gl_CC_ALLOW_WARNINGS],
|
|||
AC_REQUIRE([AC_PROG_CC])
|
||||
AC_CACHE_CHECK([for C compiler option to allow warnings],
|
||||
[gl_cv_cc_wallow],
|
||||
[rm -f conftest*
|
||||
[rm -fr conftest*
|
||||
echo 'int dummy;' > conftest.c
|
||||
AC_TRY_COMMAND([${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c 2>conftest1.err]) >/dev/null
|
||||
AC_TRY_COMMAND([${CC-cc} $CFLAGS $CPPFLAGS -Wno-error -c conftest.c 2>conftest2.err]) >/dev/null
|
||||
|
|
@ -1317,7 +1331,7 @@ AC_DEFUN([gl_CC_ALLOW_WARNINGS],
|
|||
else
|
||||
gl_cv_cc_wallow=none
|
||||
fi
|
||||
rm -f conftest*
|
||||
rm -fr conftest*
|
||||
])
|
||||
case "$gl_cv_cc_wallow" in
|
||||
none) GL_CFLAG_ALLOW_WARNINGS='' ;;
|
||||
|
|
@ -1335,7 +1349,7 @@ AC_DEFUN([gl_CXX_ALLOW_WARNINGS],
|
|||
if test -n "$CXX" && test "$CXX" != no; then
|
||||
AC_CACHE_CHECK([for C++ compiler option to allow warnings],
|
||||
[gl_cv_cxx_wallow],
|
||||
[rm -f conftest*
|
||||
[rm -fr conftest*
|
||||
echo 'int dummy;' > conftest.cc
|
||||
AC_TRY_COMMAND([${CXX-c++} $CXXFLAGS $CPPFLAGS -c conftest.cc 2>conftest1.err]) >/dev/null
|
||||
AC_TRY_COMMAND([${CXX-c++} $CXXFLAGS $CPPFLAGS -Wno-error -c conftest.cc 2>conftest2.err]) >/dev/null
|
||||
|
|
@ -1348,7 +1362,7 @@ AC_DEFUN([gl_CXX_ALLOW_WARNINGS],
|
|||
else
|
||||
gl_cv_cxx_wallow=none
|
||||
fi
|
||||
rm -f conftest*
|
||||
rm -fr conftest*
|
||||
])
|
||||
case "$gl_cv_cxx_wallow" in
|
||||
none) GL_CXXFLAG_ALLOW_WARNINGS='' ;;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue