[prev in list] [next in list] [prev in thread] [next in thread] 

List:       apr-cvs
Subject:    svn commit: r1675668 - /apr/apr/trunk/configure.in
From:       ylavic () apache ! org
Date:       2015-04-23 16:03:00
Message-ID: 20150423160300.9EC50AC006A () hades ! apache ! org
[Download RAW message or body]

Author: ylavic
Date: Thu Apr 23 16:03:00 2015
New Revision: 1675668

URL: http://svn.apache.org/r1675668
Log:
Switch to generic atomics for (unpatched) Solaris 10 not exporting some atomic
functions.  PR 55418.

Modified:
    apr/apr/trunk/configure.in

Modified: apr/apr/trunk/configure.in
URL: http://svn.apache.org/viewvc/apr/apr/trunk/configure.in?rev=1675668&r1=1675667&r2=1675668&view=diff
 ==============================================================================
--- apr/apr/trunk/configure.in (original)
+++ apr/apr/trunk/configure.in Thu Apr 23 16:03:00 2015
@@ -656,7 +656,20 @@ AC_ARG_ENABLE(nonportable-atomics,
 ],
 [case $host_cpu in
    i[[456]]86) force_generic_atomics=yes ;;
-   *) force_generic_atomics=no ;;
+   *) force_generic_atomics=no
+      case $host in
+         *solaris2.10*)
+            AC_TRY_COMPILE(
+                [#include <atomic.h>],
+                [void *ptr = NULL; atomic_cas_ptr(&ptr, NULL, NULL);],,
+                [force_generic_atomics=yes]
+            )
+            if test $force_generic_atomics = yes; then
+                AC_MSG_NOTICE([nonportable atomic support disabled, system needs \
Patch-ID 118884 or 118885]) +            fi
+            ;;
+      esac
+      ;;
 esac
 ])
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic