libstdc++: Fix definition of _GLIBCXX_NO_SLEEP config macro
authorJonathan Wakely <jwakely@redhat.com>
Fri, 10 Dec 2021 11:39:26 +0000 (11:39 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Fri, 10 Dec 2021 14:05:46 +0000 (14:05 +0000)
commitca1c7065e9de04ceb521a0b409071275c5690341
treec50e8517c7885e806a9a152e6f0cdf359dbd91cc
parent68fd247e15e4de6eedd6c5cde5085e302406e183
libstdc++: Fix definition of _GLIBCXX_NO_SLEEP config macro

If no OS function to sleep (e.g. nanosleep, usleep, Win32 Sleep etc.) is
available then configure defines the macro NO_SLEEP. But this will not
get prefixed with "_GLIBCXX_" because include/Makefile.am only does that
for macros beginning with "HAVE_". The configure script should define
_GLIBCXX_NO_SLEEP instead (which is what the code actually checks for).

libstdc++-v3/ChangeLog:

* acinclude.m4 (GLIBCXX_ENABLE_LIBSTDCXX_TIME): Add _GLIBCXX_
prefix to NO_SLEEP macro.
* config.h.in: Regenerate.
* configure: Regenerate.
libstdc++-v3/acinclude.m4
libstdc++-v3/config.h.in
libstdc++-v3/configure