[Groonga-commit] groonga/grnxx [master] Define _GLIBCXX_USE_* if the corresponding functions are available.

アーカイブの一覧に戻る

susumu.yata null+****@clear*****
Wed Mar 6 08:49:55 JST 2013


susumu.yata	2013-03-06 08:49:55 +0900 (Wed, 06 Mar 2013)

  New Revision: 2480a6cc987355d23728af58bcdf401773e6cefa
  https://github.com/groonga/grnxx/commit/2480a6cc987355d23728af58bcdf401773e6cefa

  Log:
    Define _GLIBCXX_USE_* if the corresponding functions are available.

  Modified files:
    configure.ac

  Modified: configure.ac (+5 -0)
===================================================================
--- configure.ac    2013-03-05 15:22:01 +0900 (ac9d5d9)
+++ configure.ac    2013-03-06 08:49:55 +0900 (1709e6a)
@@ -52,6 +52,11 @@ AC_CHECK_LIB([pthread], [pthread_create],
 
 AC_CHECK_FUNCS([pthread_atfork])
 
+AC_CHECK_FUNC([sched_yield],
+              [AM_CXXFLAGS="${AM_CXXFLAGS} -D_GLIBCXX_USE_SCHED_YIELD"])
+AC_CHECK_FUNC([nanosleep],
+              [AM_CXXFLAGS="${AM_CXXFLAGS} -D_GLIBCXX_USE_NANOSLEEP"])
+
 AC_CONFIG_FILES([Makefile
                  lib/Makefile
                  lib/alpha/Makefile
-------------- next part --------------
HTML����������������������������...
ダウンロード 



More information about the Groonga-commit mailing list
アーカイブの一覧に戻る