From: Corentin Gay Date: Mon, 30 Dec 2019 22:36:14 +0000 (+0000) Subject: VxWorks has_nanosleep for libstdc++ enable-libstdcxx-time auto X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=784daa979bf0410d5a0face24a29753129d54600;p=gcc.git VxWorks has_nanosleep for libstdc++ enable-libstdcxx-time auto 2019-12-30 Corentin Gay * acinclude.m4 (vxworks*): New entry. Set ac_has_nanosleep=yes. * configure: Regenerate. From-SVN: r279796 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index c9b4922dc96..564015d0899 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2019-12-30 Corentin Gay + + * acinclude.m4 (vxworks*): New entry. Set ac_has_nanosleep=yes. + * configure: Regenerate. + 2019-12-30 Jerome Lambourg Olivier Hainque diff --git a/libstdc++-v3/acinclude.m4 b/libstdc++-v3/acinclude.m4 index c0d1059c6ed..c537a2688dd 100644 --- a/libstdc++-v3/acinclude.m4 +++ b/libstdc++-v3/acinclude.m4 @@ -1407,6 +1407,11 @@ AC_DEFUN([GLIBCXX_ENABLE_LIBSTDCXX_TIME], [ ac_has_nanosleep=yes ac_has_sched_yield=yes ;; + # VxWorks has nanosleep as soon as the kernel is configured with + # INCLUDE_POSIX_TIMERS, which is normally/most-often the case. + vxworks*) + ac_has_nanosleep=yes + ;; gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu) AC_MSG_CHECKING([for at least GNU libc 2.17]) AC_TRY_COMPILE( diff --git a/libstdc++-v3/configure b/libstdc++-v3/configure index d96bd1457ec..d2e516df6d0 100755 --- a/libstdc++-v3/configure +++ b/libstdc++-v3/configure @@ -21060,6 +21060,11 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu ac_has_nanosleep=yes ac_has_sched_yield=yes ;; + # VxWorks has nanosleep as soon as the kernel is configured with + # INCLUDE_POSIX_TIMERS, which is normally/most-often the case. + vxworks*) + ac_has_nanosleep=yes + ;; gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for at least GNU libc 2.17" >&5 $as_echo_n "checking for at least GNU libc 2.17... " >&6; }