[Groonga-commit] groonga/groonga at d1a1e51 [master] Fix needless -latomic check on x86 and x64 host

Back to archive index

HAYASHI Kentaro null+****@clear*****
Fri Feb 26 08:39:58 JST 2016


HAYASHI Kentaro	2016-02-26 08:39:58 +0900 (Fri, 26 Feb 2016)

  New Revision: d1a1e51b451a96484c0315441d53d900921a616c
  https://github.com/groonga/groonga/commit/d1a1e51b451a96484c0315441d53d900921a616c

  Merged 456db54: Merge pull request #492 from kenhys/fix-needless-latomic

  Message:
    Fix needless -latomic check on x86 and x64 host

  Modified files:
    configure.ac

  Modified: configure.ac (+9 -2)
===================================================================
--- configure.ac    2016-02-26 00:12:06 +0900 (915cf26)
+++ configure.ac    2016-02-26 08:39:58 +0900 (17d9d09)
@@ -1243,8 +1243,15 @@ AM_CONDITIONAL([ENABLE_SUGGEST_LEARNER],
                      "$message_pack_available" = "yes"])
 
 # Check built-in atomic
-AC_CHECK_LIB(atomic, __atomic_store_8, [ATOMIC_LIBS="-latomic"])
-AC_SUBST(ATOMIC_LIBS)
+case "$host" in
+  i*86*|x86_64*)
+    ;;
+  *)
+    AC_MSG_CHECKING([for platform which requires libatomic])
+    AC_CHECK_LIB(atomic, __atomic_store_8, [ATOMIC_LIBS="-latomic"])
+    AC_SUBST(ATOMIC_LIBS)
+    ;;
+esac
 
 # Document
 AC_MSG_CHECKING([whether enable document])
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index