]> gcc.gnu.org Git - gcc.git/commitdiff
VxWorks has_nanosleep for libstdc++ enable-libstdcxx-time auto
authorCorentin Gay <gay@adacore.com>
Mon, 30 Dec 2019 22:36:14 +0000 (22:36 +0000)
committerOlivier Hainque <hainque@gcc.gnu.org>
Mon, 30 Dec 2019 22:36:14 +0000 (22:36 +0000)
2019-12-30  Corentin Gay  <gay@adacore.com>

* acinclude.m4 (vxworks*): New entry. Set ac_has_nanosleep=yes.
* configure: Regenerate.

From-SVN: r279796

libstdc++-v3/ChangeLog
libstdc++-v3/acinclude.m4
libstdc++-v3/configure

index c9b4922dc96138714906758253e5b3779b8d5ea0..564015d0899f1461705b19a034269c8058496059 100644 (file)
@@ -1,3 +1,8 @@
+2019-12-30  Corentin Gay  <gay@adacore.com>
+
+       * acinclude.m4 (vxworks*): New entry. Set ac_has_nanosleep=yes.
+       * configure: Regenerate.
+
 2019-12-30  Jerome Lambourg  <lambourg@adacore.com>
             Olivier Hainque  <hainque@adacore.com>
 
index c0d1059c6ed69a7dd0c19fab378b9d4d0d8dd350..c537a2688ddce443aa46798c646a415ba32651ca 100644 (file)
@@ -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(
index d96bd1457ec9006b0f3648c7acf76b8c2cf8c71a..d2e516df6d092b1ddc34a607acb93d9e1a44560b 100755 (executable)
@@ -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; }
This page took 0.128334 seconds and 5 git commands to generate.