2024-05-11 20:16:48 +00:00
|
|
|
# include_next.m4
|
|
|
|
# serial 27
|
2024-01-02 01:47:10 +00:00
|
|
|
dnl Copyright (C) 2006-2024 Free Software Foundation, Inc.
|
2011-01-09 06:57:07 +00:00
|
|
|
dnl This file is free software; the Free Software Foundation
|
|
|
|
dnl gives unlimited permission to copy and/or distribute it,
|
|
|
|
dnl with or without modifications, as long as this notice is preserved.
|
|
|
|
|
|
|
|
dnl From Paul Eggert and Derek Price.
|
|
|
|
|
Merge from gnulib
This incorporates:
2017-04-30 strftime-fixes: New module
2017-04-30 mktime: Work around TZ problem on native Windows
2017-04-30 ctime, localtime: New modules
2017-04-30 gettimeofday: Provide higher resolution on native Windows
2017-04-29 utime-h: Modernize handling of 'struct utimbuf'
2017-04-29 Make use of module 'utime-h'
2017-04-30 Fix a few typos
* admin/merge-gnulib (AVOIDED_MODULES): Avoid utime-h, too.
* lib/gettimeofday.c, lib/mktime.c, lib/time.in.h, lib/utimens.c:
* m4/gettimeofday.m4, m4/include_next.m4, m4/mktime.m4:
* m4/strftime.m4, m4/time_h.m4, m4/timegm.m4, m4/utimens.m4:
Copy from gnulib.
* lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate.
2017-04-30 21:52:10 +00:00
|
|
|
dnl Sets INCLUDE_NEXT, INCLUDE_NEXT_AS_FIRST_DIRECTIVE, PRAGMA_SYSTEM_HEADER,
|
|
|
|
dnl and PRAGMA_COLUMNS.
|
2011-01-09 06:57:07 +00:00
|
|
|
dnl
|
|
|
|
dnl INCLUDE_NEXT expands to 'include_next' if the compiler supports it, or to
|
|
|
|
dnl 'include' otherwise.
|
|
|
|
dnl
|
|
|
|
dnl INCLUDE_NEXT_AS_FIRST_DIRECTIVE expands to 'include_next' if the compiler
|
|
|
|
dnl supports it in the special case that it is the first include directive in
|
|
|
|
dnl the given file, or to 'include' otherwise.
|
|
|
|
dnl
|
|
|
|
dnl PRAGMA_SYSTEM_HEADER can be used in files that contain #include_next,
|
|
|
|
dnl so as to avoid GCC warnings when the gcc option -pedantic is used.
|
|
|
|
dnl '#pragma GCC system_header' has the same effect as if the file was found
|
|
|
|
dnl through the include search path specified with '-isystem' options (as
|
|
|
|
dnl opposed to the search path specified with '-I' options). Namely, gcc
|
|
|
|
dnl does not warn about some things, and on some systems (Solaris and Interix)
|
|
|
|
dnl __STDC__ evaluates to 0 instead of to 1. The latter is an undesired side
|
|
|
|
dnl effect; we are therefore careful to use 'defined __STDC__' or '1' instead
|
|
|
|
dnl of plain '__STDC__'.
|
|
|
|
dnl
|
|
|
|
dnl PRAGMA_COLUMNS can be used in files that override system header files, so
|
|
|
|
dnl as to avoid compilation errors on HP NonStop systems when the gnulib file
|
|
|
|
dnl is included by a system header file that does a "#pragma COLUMNS 80" (which
|
|
|
|
dnl has the effect of truncating the lines of that file and all files that it
|
|
|
|
dnl includes to 80 columns) and the gnulib file has lines longer than 80
|
|
|
|
dnl columns.
|
|
|
|
|
|
|
|
AC_DEFUN([gl_INCLUDE_NEXT],
|
|
|
|
[
|
|
|
|
AC_LANG_PREPROC_REQUIRE()
|
|
|
|
AC_CACHE_CHECK([whether the preprocessor supports include_next],
|
|
|
|
[gl_cv_have_include_next],
|
|
|
|
[rm -rf conftestd1a conftestd1b conftestd2
|
|
|
|
mkdir conftestd1a conftestd1b conftestd2
|
|
|
|
dnl IBM C 9.0, 10.1 (original versions, prior to the 2009-01 updates) on
|
|
|
|
dnl AIX 6.1 support include_next when used as first preprocessor directive
|
|
|
|
dnl in a file, but not when preceded by another include directive. Check
|
|
|
|
dnl for this bug by including <stdio.h>.
|
|
|
|
dnl Additionally, with this same compiler, include_next is a no-op when
|
|
|
|
dnl used in a header file that was included by specifying its absolute
|
|
|
|
dnl file name. Despite these two bugs, include_next is used in the
|
|
|
|
dnl compiler's <math.h>. By virtue of the second bug, we need to use
|
|
|
|
dnl include_next as well in this case.
|
|
|
|
cat <<EOF > conftestd1a/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 > conftestd1b/conftest.h
|
|
|
|
#define DEFINED_IN_CONFTESTD1
|
|
|
|
#include <stdio.h>
|
|
|
|
#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
|
2024-01-20 19:45:04 +00:00
|
|
|
gl_saved_CPPFLAGS="$CPPFLAGS"
|
|
|
|
CPPFLAGS="$gl_saved_CPPFLAGS -Iconftestd1b -Iconftestd2"
|
2011-01-09 06:57:07 +00:00
|
|
|
dnl We intentionally avoid using AC_LANG_SOURCE here.
|
|
|
|
AC_COMPILE_IFELSE([AC_LANG_DEFINES_PROVIDED[#include <conftest.h>]],
|
|
|
|
[gl_cv_have_include_next=yes],
|
2024-01-20 19:45:04 +00:00
|
|
|
[CPPFLAGS="$gl_saved_CPPFLAGS -Iconftestd1a -Iconftestd2"
|
2011-01-09 06:57:07 +00:00
|
|
|
AC_COMPILE_IFELSE([AC_LANG_DEFINES_PROVIDED[#include <conftest.h>]],
|
|
|
|
[gl_cv_have_include_next=buggy],
|
|
|
|
[gl_cv_have_include_next=no])
|
|
|
|
])
|
2024-01-20 19:45:04 +00:00
|
|
|
CPPFLAGS="$gl_saved_CPPFLAGS"
|
2011-01-09 06:57:07 +00:00
|
|
|
rm -rf conftestd1a conftestd1b conftestd2
|
|
|
|
])
|
|
|
|
PRAGMA_SYSTEM_HEADER=
|
|
|
|
if test $gl_cv_have_include_next = yes; then
|
|
|
|
INCLUDE_NEXT=include_next
|
|
|
|
INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
|
|
|
|
if test -n "$GCC"; then
|
|
|
|
PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
if test $gl_cv_have_include_next = buggy; then
|
|
|
|
INCLUDE_NEXT=include
|
|
|
|
INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
|
|
|
|
else
|
|
|
|
INCLUDE_NEXT=include
|
|
|
|
INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
AC_SUBST([INCLUDE_NEXT])
|
|
|
|
AC_SUBST([INCLUDE_NEXT_AS_FIRST_DIRECTIVE])
|
|
|
|
AC_SUBST([PRAGMA_SYSTEM_HEADER])
|
2020-09-06 00:48:45 +00:00
|
|
|
|
|
|
|
dnl HP NonStop systems, which define __TANDEM, limit the line length
|
|
|
|
dnl after including some system header files.
|
|
|
|
AC_CACHE_CHECK([whether source code line length is unlimited],
|
|
|
|
[gl_cv_source_line_length_unlimited],
|
|
|
|
[AC_EGREP_CPP([choke me],
|
2011-01-09 06:57:07 +00:00
|
|
|
[
|
|
|
|
#ifdef __TANDEM
|
|
|
|
choke me
|
|
|
|
#endif
|
|
|
|
],
|
2020-09-06 00:48:45 +00:00
|
|
|
[gl_cv_source_line_length_unlimited=no],
|
|
|
|
[gl_cv_source_line_length_unlimited=yes])
|
2011-01-09 06:57:07 +00:00
|
|
|
])
|
2020-09-06 00:48:45 +00:00
|
|
|
if test $gl_cv_source_line_length_unlimited = no; then
|
2011-01-09 06:57:07 +00:00
|
|
|
PRAGMA_COLUMNS="#pragma COLUMNS 10000"
|
|
|
|
else
|
|
|
|
PRAGMA_COLUMNS=
|
|
|
|
fi
|
|
|
|
AC_SUBST([PRAGMA_COLUMNS])
|
|
|
|
])
|
|
|
|
|
|
|
|
# gl_CHECK_NEXT_HEADERS(HEADER1 HEADER2 ...)
|
|
|
|
# ------------------------------------------
|
|
|
|
# For each arg foo.h, if #include_next works, define NEXT_FOO_H to be
|
|
|
|
# '<foo.h>'; otherwise define it to be
|
|
|
|
# '"///usr/include/foo.h"', or whatever other absolute file name is suitable.
|
|
|
|
# Also, if #include_next works as first preprocessing directive in a file,
|
|
|
|
# define NEXT_AS_FIRST_DIRECTIVE_FOO_H to be '<foo.h>'; otherwise define it to
|
|
|
|
# be
|
|
|
|
# '"///usr/include/foo.h"', or whatever other absolute file name is suitable.
|
|
|
|
# That way, a header file with the following line:
|
|
|
|
# #@INCLUDE_NEXT@ @NEXT_FOO_H@
|
|
|
|
# or
|
|
|
|
# #@INCLUDE_NEXT_AS_FIRST_DIRECTIVE@ @NEXT_AS_FIRST_DIRECTIVE_FOO_H@
|
|
|
|
# behaves (after sed substitution) as if it contained
|
|
|
|
# #include_next <foo.h>
|
|
|
|
# even if the compiler does not support include_next.
|
|
|
|
# The three "///" are to pacify Sun C 5.8, which otherwise would say
|
|
|
|
# "warning: #include of /usr/include/... may be non-portable".
|
2012-05-26 23:14:36 +00:00
|
|
|
# Use '""', not '<>', so that the /// cannot be confused with a C99 comment.
|
2011-01-09 06:57:07 +00:00
|
|
|
# Note: This macro assumes that the header file is not empty after
|
|
|
|
# preprocessing, i.e. it does not only define preprocessor macros but also
|
|
|
|
# provides some type/enum definitions or function/variable declarations.
|
2011-01-22 00:12:10 +00:00
|
|
|
#
|
|
|
|
# This macro also checks whether each header exists, by invoking
|
|
|
|
# AC_CHECK_HEADERS_ONCE or AC_CHECK_HEADERS on each argument.
|
2011-01-09 06:57:07 +00:00
|
|
|
AC_DEFUN([gl_CHECK_NEXT_HEADERS],
|
2011-01-22 00:12:10 +00:00
|
|
|
[
|
|
|
|
gl_NEXT_HEADERS_INTERNAL([$1], [check])
|
|
|
|
])
|
|
|
|
|
|
|
|
# gl_NEXT_HEADERS(HEADER1 HEADER2 ...)
|
|
|
|
# ------------------------------------
|
|
|
|
# Like gl_CHECK_NEXT_HEADERS, except do not check whether the headers exist.
|
|
|
|
# This is suitable for headers like <stddef.h> that are standardized by C89
|
|
|
|
# and therefore can be assumed to exist.
|
|
|
|
AC_DEFUN([gl_NEXT_HEADERS],
|
|
|
|
[
|
|
|
|
gl_NEXT_HEADERS_INTERNAL([$1], [assume])
|
|
|
|
])
|
|
|
|
|
|
|
|
# The guts of gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS.
|
|
|
|
AC_DEFUN([gl_NEXT_HEADERS_INTERNAL],
|
2011-01-09 06:57:07 +00:00
|
|
|
[
|
|
|
|
AC_REQUIRE([gl_INCLUDE_NEXT])
|
|
|
|
AC_REQUIRE([AC_CANONICAL_HOST])
|
2011-01-22 00:12:10 +00:00
|
|
|
|
|
|
|
m4_if([$2], [check],
|
|
|
|
[AC_CHECK_HEADERS_ONCE([$1])
|
|
|
|
])
|
2011-01-09 06:57:07 +00:00
|
|
|
|
|
|
|
m4_foreach_w([gl_HEADER_NAME], [$1],
|
|
|
|
[AS_VAR_PUSHDEF([gl_next_header],
|
|
|
|
[gl_cv_next_]m4_defn([gl_HEADER_NAME]))
|
|
|
|
if test $gl_cv_have_include_next = yes; then
|
Update from Gnulib
This incorporates:
2020-08-16 time_rz: remove unused functions
2020-08-16 time_rz: fix issues with mktime_z failures
2020-08-16 nstrftime: Guide inlining also on clang
2020-08-16 intprops: Avoid bogus warning on clang
2020-08-16 libc-config: Enable __REDIRECT macro also on clang
2020-08-16 regex: Use initializer shorthand syntax also with clang
2020-08-16 regex: Use space optimization also with clang
2020-08-16 Use _Static_assert and static_assert when present on clang
2020-08-16 Use 'throw ()' for optimization in C++ mode also on clang
2020-08-16 stdio: Don't break attribute 'scanf' on clang
2020-08-16 Fix "warning: 'format' attribute ...: rpl_printf"
2020-08-16 Fix "warning: attribute declaration must precede definition"
2020-08-16 Fix undesired warnings
2020-08-16 Don't use Autoconf quadrigraphsxo
2020-08-16 Fix quoting of AC_LANG_PROGRAM arguments
2020-08-16 Assume autoconf >= 2.64
2020-08-15 nstrftime: be more predictable about errno
2020-08-15 canonicalize: Fix autoconf test on MSVC/clang
2020-08-15 Support compiling without -loldnames on native Windows
2020-08-14 mktime, mktime-internal: Remove obsolete code
2020-08-14 Assume tzset exists
* lib/c++defs.h, lib/canonicalize-lgpl.c, lib/cdefs.h, lib/dup2.c:
* lib/fcntl.in.h, lib/getopt-cdefs.in.h, lib/intprops.h, lib/md5.h:
* lib/mktime.c, lib/nstrftime.c, lib/open.c, lib/regcomp.c:
* lib/regex_internal.h, lib/stdio.in.h, lib/stdlib.in.h:
* lib/strftime.h, lib/string.in.h, lib/sys_select.in.h:
* lib/sys_stat.in.h, lib/sys_time.in.h, lib/time.in.h, lib/time_rz.c:
* lib/unistd.in.h, lib/verify.h, m4/00gnulib.m4:
* m4/absolute-header.m4, m4/alloca.m4, m4/canonicalize.m4, m4/dup2.m4:
* m4/fchmodat.m4, m4/fcntl.m4, m4/fdopendir.m4, m4/fpending.m4:
* m4/futimens.m4, m4/getdtablesize.m4, m4/getloadavg.m4:
* m4/gnulib-common.m4, m4/include_next.m4, m4/largefile.m4:
* m4/manywarnings.m4, m4/mktime.m4, m4/nstrftime.m4, m4/open-slash.m4:
* m4/pselect.m4, m4/pthread_sigmask.m4, m4/time_h.m4, m4/utimens.m4:
* m4/utimensat.m4, m4/utimes.m4, m4/warnings.m4:
Copy from Gnulib.
* lib/gnulib.mk.in: Regenerate.
2020-08-16 21:22:56 +00:00
|
|
|
AS_VAR_SET([gl_next_header], ['<'gl_HEADER_NAME'>'])
|
2011-01-09 06:57:07 +00:00
|
|
|
else
|
|
|
|
AC_CACHE_CHECK(
|
|
|
|
[absolute name of <]m4_defn([gl_HEADER_NAME])[>],
|
Update from Gnulib
This incorporates:
2020-08-16 time_rz: remove unused functions
2020-08-16 time_rz: fix issues with mktime_z failures
2020-08-16 nstrftime: Guide inlining also on clang
2020-08-16 intprops: Avoid bogus warning on clang
2020-08-16 libc-config: Enable __REDIRECT macro also on clang
2020-08-16 regex: Use initializer shorthand syntax also with clang
2020-08-16 regex: Use space optimization also with clang
2020-08-16 Use _Static_assert and static_assert when present on clang
2020-08-16 Use 'throw ()' for optimization in C++ mode also on clang
2020-08-16 stdio: Don't break attribute 'scanf' on clang
2020-08-16 Fix "warning: 'format' attribute ...: rpl_printf"
2020-08-16 Fix "warning: attribute declaration must precede definition"
2020-08-16 Fix undesired warnings
2020-08-16 Don't use Autoconf quadrigraphsxo
2020-08-16 Fix quoting of AC_LANG_PROGRAM arguments
2020-08-16 Assume autoconf >= 2.64
2020-08-15 nstrftime: be more predictable about errno
2020-08-15 canonicalize: Fix autoconf test on MSVC/clang
2020-08-15 Support compiling without -loldnames on native Windows
2020-08-14 mktime, mktime-internal: Remove obsolete code
2020-08-14 Assume tzset exists
* lib/c++defs.h, lib/canonicalize-lgpl.c, lib/cdefs.h, lib/dup2.c:
* lib/fcntl.in.h, lib/getopt-cdefs.in.h, lib/intprops.h, lib/md5.h:
* lib/mktime.c, lib/nstrftime.c, lib/open.c, lib/regcomp.c:
* lib/regex_internal.h, lib/stdio.in.h, lib/stdlib.in.h:
* lib/strftime.h, lib/string.in.h, lib/sys_select.in.h:
* lib/sys_stat.in.h, lib/sys_time.in.h, lib/time.in.h, lib/time_rz.c:
* lib/unistd.in.h, lib/verify.h, m4/00gnulib.m4:
* m4/absolute-header.m4, m4/alloca.m4, m4/canonicalize.m4, m4/dup2.m4:
* m4/fchmodat.m4, m4/fcntl.m4, m4/fdopendir.m4, m4/fpending.m4:
* m4/futimens.m4, m4/getdtablesize.m4, m4/getloadavg.m4:
* m4/gnulib-common.m4, m4/include_next.m4, m4/largefile.m4:
* m4/manywarnings.m4, m4/mktime.m4, m4/nstrftime.m4, m4/open-slash.m4:
* m4/pselect.m4, m4/pthread_sigmask.m4, m4/time_h.m4, m4/utimens.m4:
* m4/utimensat.m4, m4/utimes.m4, m4/warnings.m4:
Copy from Gnulib.
* lib/gnulib.mk.in: Regenerate.
2020-08-16 21:22:56 +00:00
|
|
|
[gl_next_header],
|
2011-01-22 00:12:10 +00:00
|
|
|
[m4_if([$2], [check],
|
|
|
|
[AS_VAR_PUSHDEF([gl_header_exists],
|
|
|
|
[ac_cv_header_]m4_defn([gl_HEADER_NAME]))
|
Update from Gnulib
This incorporates:
2020-08-16 time_rz: remove unused functions
2020-08-16 time_rz: fix issues with mktime_z failures
2020-08-16 nstrftime: Guide inlining also on clang
2020-08-16 intprops: Avoid bogus warning on clang
2020-08-16 libc-config: Enable __REDIRECT macro also on clang
2020-08-16 regex: Use initializer shorthand syntax also with clang
2020-08-16 regex: Use space optimization also with clang
2020-08-16 Use _Static_assert and static_assert when present on clang
2020-08-16 Use 'throw ()' for optimization in C++ mode also on clang
2020-08-16 stdio: Don't break attribute 'scanf' on clang
2020-08-16 Fix "warning: 'format' attribute ...: rpl_printf"
2020-08-16 Fix "warning: attribute declaration must precede definition"
2020-08-16 Fix undesired warnings
2020-08-16 Don't use Autoconf quadrigraphsxo
2020-08-16 Fix quoting of AC_LANG_PROGRAM arguments
2020-08-16 Assume autoconf >= 2.64
2020-08-15 nstrftime: be more predictable about errno
2020-08-15 canonicalize: Fix autoconf test on MSVC/clang
2020-08-15 Support compiling without -loldnames on native Windows
2020-08-14 mktime, mktime-internal: Remove obsolete code
2020-08-14 Assume tzset exists
* lib/c++defs.h, lib/canonicalize-lgpl.c, lib/cdefs.h, lib/dup2.c:
* lib/fcntl.in.h, lib/getopt-cdefs.in.h, lib/intprops.h, lib/md5.h:
* lib/mktime.c, lib/nstrftime.c, lib/open.c, lib/regcomp.c:
* lib/regex_internal.h, lib/stdio.in.h, lib/stdlib.in.h:
* lib/strftime.h, lib/string.in.h, lib/sys_select.in.h:
* lib/sys_stat.in.h, lib/sys_time.in.h, lib/time.in.h, lib/time_rz.c:
* lib/unistd.in.h, lib/verify.h, m4/00gnulib.m4:
* m4/absolute-header.m4, m4/alloca.m4, m4/canonicalize.m4, m4/dup2.m4:
* m4/fchmodat.m4, m4/fcntl.m4, m4/fdopendir.m4, m4/fpending.m4:
* m4/futimens.m4, m4/getdtablesize.m4, m4/getloadavg.m4:
* m4/gnulib-common.m4, m4/include_next.m4, m4/largefile.m4:
* m4/manywarnings.m4, m4/mktime.m4, m4/nstrftime.m4, m4/open-slash.m4:
* m4/pselect.m4, m4/pthread_sigmask.m4, m4/time_h.m4, m4/utimens.m4:
* m4/utimensat.m4, m4/utimes.m4, m4/warnings.m4:
Copy from Gnulib.
* lib/gnulib.mk.in: Regenerate.
2020-08-16 21:22:56 +00:00
|
|
|
if test AS_VAR_GET([gl_header_exists]) = yes; then
|
2011-01-22 00:12:10 +00:00
|
|
|
AS_VAR_POPDEF([gl_header_exists])
|
|
|
|
])
|
2021-12-19 00:12:38 +00:00
|
|
|
gl_ABSOLUTE_HEADER_ONE(gl_HEADER_NAME)
|
|
|
|
AS_VAR_COPY([gl_header], [gl_cv_absolute_]AS_TR_SH(gl_HEADER_NAME))
|
|
|
|
AS_VAR_SET([gl_next_header], ['"'$gl_header'"'])
|
2011-01-22 00:12:10 +00:00
|
|
|
m4_if([$2], [check],
|
|
|
|
[else
|
Update from Gnulib
This incorporates:
2020-08-16 time_rz: remove unused functions
2020-08-16 time_rz: fix issues with mktime_z failures
2020-08-16 nstrftime: Guide inlining also on clang
2020-08-16 intprops: Avoid bogus warning on clang
2020-08-16 libc-config: Enable __REDIRECT macro also on clang
2020-08-16 regex: Use initializer shorthand syntax also with clang
2020-08-16 regex: Use space optimization also with clang
2020-08-16 Use _Static_assert and static_assert when present on clang
2020-08-16 Use 'throw ()' for optimization in C++ mode also on clang
2020-08-16 stdio: Don't break attribute 'scanf' on clang
2020-08-16 Fix "warning: 'format' attribute ...: rpl_printf"
2020-08-16 Fix "warning: attribute declaration must precede definition"
2020-08-16 Fix undesired warnings
2020-08-16 Don't use Autoconf quadrigraphsxo
2020-08-16 Fix quoting of AC_LANG_PROGRAM arguments
2020-08-16 Assume autoconf >= 2.64
2020-08-15 nstrftime: be more predictable about errno
2020-08-15 canonicalize: Fix autoconf test on MSVC/clang
2020-08-15 Support compiling without -loldnames on native Windows
2020-08-14 mktime, mktime-internal: Remove obsolete code
2020-08-14 Assume tzset exists
* lib/c++defs.h, lib/canonicalize-lgpl.c, lib/cdefs.h, lib/dup2.c:
* lib/fcntl.in.h, lib/getopt-cdefs.in.h, lib/intprops.h, lib/md5.h:
* lib/mktime.c, lib/nstrftime.c, lib/open.c, lib/regcomp.c:
* lib/regex_internal.h, lib/stdio.in.h, lib/stdlib.in.h:
* lib/strftime.h, lib/string.in.h, lib/sys_select.in.h:
* lib/sys_stat.in.h, lib/sys_time.in.h, lib/time.in.h, lib/time_rz.c:
* lib/unistd.in.h, lib/verify.h, m4/00gnulib.m4:
* m4/absolute-header.m4, m4/alloca.m4, m4/canonicalize.m4, m4/dup2.m4:
* m4/fchmodat.m4, m4/fcntl.m4, m4/fdopendir.m4, m4/fpending.m4:
* m4/futimens.m4, m4/getdtablesize.m4, m4/getloadavg.m4:
* m4/gnulib-common.m4, m4/include_next.m4, m4/largefile.m4:
* m4/manywarnings.m4, m4/mktime.m4, m4/nstrftime.m4, m4/open-slash.m4:
* m4/pselect.m4, m4/pthread_sigmask.m4, m4/time_h.m4, m4/utimens.m4:
* m4/utimensat.m4, m4/utimes.m4, m4/warnings.m4:
Copy from Gnulib.
* lib/gnulib.mk.in: Regenerate.
2020-08-16 21:22:56 +00:00
|
|
|
AS_VAR_SET([gl_next_header], ['<'gl_HEADER_NAME'>'])
|
2011-01-22 00:12:10 +00:00
|
|
|
fi
|
|
|
|
])
|
|
|
|
])
|
2011-01-09 06:57:07 +00:00
|
|
|
fi
|
|
|
|
AC_SUBST(
|
|
|
|
AS_TR_CPP([NEXT_]m4_defn([gl_HEADER_NAME])),
|
Update from Gnulib
This incorporates:
2020-08-16 time_rz: remove unused functions
2020-08-16 time_rz: fix issues with mktime_z failures
2020-08-16 nstrftime: Guide inlining also on clang
2020-08-16 intprops: Avoid bogus warning on clang
2020-08-16 libc-config: Enable __REDIRECT macro also on clang
2020-08-16 regex: Use initializer shorthand syntax also with clang
2020-08-16 regex: Use space optimization also with clang
2020-08-16 Use _Static_assert and static_assert when present on clang
2020-08-16 Use 'throw ()' for optimization in C++ mode also on clang
2020-08-16 stdio: Don't break attribute 'scanf' on clang
2020-08-16 Fix "warning: 'format' attribute ...: rpl_printf"
2020-08-16 Fix "warning: attribute declaration must precede definition"
2020-08-16 Fix undesired warnings
2020-08-16 Don't use Autoconf quadrigraphsxo
2020-08-16 Fix quoting of AC_LANG_PROGRAM arguments
2020-08-16 Assume autoconf >= 2.64
2020-08-15 nstrftime: be more predictable about errno
2020-08-15 canonicalize: Fix autoconf test on MSVC/clang
2020-08-15 Support compiling without -loldnames on native Windows
2020-08-14 mktime, mktime-internal: Remove obsolete code
2020-08-14 Assume tzset exists
* lib/c++defs.h, lib/canonicalize-lgpl.c, lib/cdefs.h, lib/dup2.c:
* lib/fcntl.in.h, lib/getopt-cdefs.in.h, lib/intprops.h, lib/md5.h:
* lib/mktime.c, lib/nstrftime.c, lib/open.c, lib/regcomp.c:
* lib/regex_internal.h, lib/stdio.in.h, lib/stdlib.in.h:
* lib/strftime.h, lib/string.in.h, lib/sys_select.in.h:
* lib/sys_stat.in.h, lib/sys_time.in.h, lib/time.in.h, lib/time_rz.c:
* lib/unistd.in.h, lib/verify.h, m4/00gnulib.m4:
* m4/absolute-header.m4, m4/alloca.m4, m4/canonicalize.m4, m4/dup2.m4:
* m4/fchmodat.m4, m4/fcntl.m4, m4/fdopendir.m4, m4/fpending.m4:
* m4/futimens.m4, m4/getdtablesize.m4, m4/getloadavg.m4:
* m4/gnulib-common.m4, m4/include_next.m4, m4/largefile.m4:
* m4/manywarnings.m4, m4/mktime.m4, m4/nstrftime.m4, m4/open-slash.m4:
* m4/pselect.m4, m4/pthread_sigmask.m4, m4/time_h.m4, m4/utimens.m4:
* m4/utimensat.m4, m4/utimes.m4, m4/warnings.m4:
Copy from Gnulib.
* lib/gnulib.mk.in: Regenerate.
2020-08-16 21:22:56 +00:00
|
|
|
[AS_VAR_GET([gl_next_header])])
|
2011-01-09 06:57:07 +00:00
|
|
|
if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
|
|
|
|
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
|
|
|
|
gl_next_as_first_directive='<'gl_HEADER_NAME'>'
|
|
|
|
else
|
|
|
|
# INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
|
Update from Gnulib
This incorporates:
2020-08-16 time_rz: remove unused functions
2020-08-16 time_rz: fix issues with mktime_z failures
2020-08-16 nstrftime: Guide inlining also on clang
2020-08-16 intprops: Avoid bogus warning on clang
2020-08-16 libc-config: Enable __REDIRECT macro also on clang
2020-08-16 regex: Use initializer shorthand syntax also with clang
2020-08-16 regex: Use space optimization also with clang
2020-08-16 Use _Static_assert and static_assert when present on clang
2020-08-16 Use 'throw ()' for optimization in C++ mode also on clang
2020-08-16 stdio: Don't break attribute 'scanf' on clang
2020-08-16 Fix "warning: 'format' attribute ...: rpl_printf"
2020-08-16 Fix "warning: attribute declaration must precede definition"
2020-08-16 Fix undesired warnings
2020-08-16 Don't use Autoconf quadrigraphsxo
2020-08-16 Fix quoting of AC_LANG_PROGRAM arguments
2020-08-16 Assume autoconf >= 2.64
2020-08-15 nstrftime: be more predictable about errno
2020-08-15 canonicalize: Fix autoconf test on MSVC/clang
2020-08-15 Support compiling without -loldnames on native Windows
2020-08-14 mktime, mktime-internal: Remove obsolete code
2020-08-14 Assume tzset exists
* lib/c++defs.h, lib/canonicalize-lgpl.c, lib/cdefs.h, lib/dup2.c:
* lib/fcntl.in.h, lib/getopt-cdefs.in.h, lib/intprops.h, lib/md5.h:
* lib/mktime.c, lib/nstrftime.c, lib/open.c, lib/regcomp.c:
* lib/regex_internal.h, lib/stdio.in.h, lib/stdlib.in.h:
* lib/strftime.h, lib/string.in.h, lib/sys_select.in.h:
* lib/sys_stat.in.h, lib/sys_time.in.h, lib/time.in.h, lib/time_rz.c:
* lib/unistd.in.h, lib/verify.h, m4/00gnulib.m4:
* m4/absolute-header.m4, m4/alloca.m4, m4/canonicalize.m4, m4/dup2.m4:
* m4/fchmodat.m4, m4/fcntl.m4, m4/fdopendir.m4, m4/fpending.m4:
* m4/futimens.m4, m4/getdtablesize.m4, m4/getloadavg.m4:
* m4/gnulib-common.m4, m4/include_next.m4, m4/largefile.m4:
* m4/manywarnings.m4, m4/mktime.m4, m4/nstrftime.m4, m4/open-slash.m4:
* m4/pselect.m4, m4/pthread_sigmask.m4, m4/time_h.m4, m4/utimens.m4:
* m4/utimensat.m4, m4/utimes.m4, m4/warnings.m4:
Copy from Gnulib.
* lib/gnulib.mk.in: Regenerate.
2020-08-16 21:22:56 +00:00
|
|
|
gl_next_as_first_directive=AS_VAR_GET([gl_next_header])
|
2011-01-09 06:57:07 +00:00
|
|
|
fi
|
|
|
|
AC_SUBST(
|
|
|
|
AS_TR_CPP([NEXT_AS_FIRST_DIRECTIVE_]m4_defn([gl_HEADER_NAME])),
|
|
|
|
[$gl_next_as_first_directive])
|
|
|
|
AS_VAR_POPDEF([gl_next_header])])
|
|
|
|
])
|
|
|
|
|
|
|
|
# Autoconf 2.68 added warnings for our use of AC_COMPILE_IFELSE;
|
|
|
|
# this fallback is safe for all earlier autoconf versions.
|
|
|
|
m4_define_default([AC_LANG_DEFINES_PROVIDED])
|