[Groonga-commit] groonga/groonga [master] cmake: check backtrace()

Back to archive index

null+****@clear***** null+****@clear*****
2012年 4月 13日 (金) 18:47:34 JST


Kouhei Sutou	2012-04-13 18:47:34 +0900 (Fri, 13 Apr 2012)

  New Revision: 66329c25ae272ff5e74e95b18fe804cac3993180

  Log:
    cmake: check backtrace()

  Modified files:
    CMakeLists.txt

  Modified: CMakeLists.txt (+6 -0)
===================================================================
--- CMakeLists.txt    2012-04-13 18:38:54 +0900 (77ee8a2)
+++ CMakeLists.txt    2012-04-13 18:47:34 +0900 (73c2184)
@@ -74,6 +74,12 @@ include(build/ac_macros/check_headers.m4)
 include(build/ac_macros/check_functions.m4)
 
 ac_check_lib(dl dlopen)
+ac_check_lib(execinfo backtrace)
+if(HAVE_LIBEXECINFO)
+  set(HAVE_BACKTRACE TRUE)
+else()
+  ac_check_funcs(backtrace)
+endif()
 
 if(UNIX)
   ac_check_headers(pthread.h)




Groonga-commit メーリングリストの案内
Back to archive index