Hello community, here is the log from the commit of package pwlib checked in at Thu Mar 1 21:58:42 CET 2007. -------- --- pwlib/pwlib.changes 2007-02-16 20:49:15.000000000 +0100 +++ /mounts/work_src_done/STABLE/pwlib/pwlib.changes 2007-02-27 16:11:23.548449000 +0100 @@ -1,0 +2,5 @@ +Tue Feb 27 16:09:38 CET 2007 - kkeil@suse.de + +- fix configure.ac to detect atomic types for gcc 4.2 + +------------------------------------------------------------------- New: ---- pwlib-1.10.4-gcc42-atomic.diff ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ pwlib.spec ++++++ --- /var/tmp/diff_new_pack.O10372/_old 2007-03-01 21:58:22.000000000 +0100 +++ /var/tmp/diff_new_pack.O10372/_new 2007-03-01 21:58:22.000000000 +0100 @@ -12,7 +12,7 @@ Name: pwlib Version: 1.10.4 -Release: 1 +Release: 3 BuildRequires: SDL-devel esound-devel gcc-c++ libavc1394-devel libdc1394-devel libdv-devel libstdc++-devel openldap2 openldap2-devel URL: http://www.openh323.org/ License: MOZILLA PUBLIC LICENSE (MPL/NPL) @@ -27,6 +27,7 @@ # http://sourceforge.net/tracker/index.php?func=detail&aid=1532388&group_id=80... Patch: %{name}-%{version}.diff Patch1: %{name}-%{version}-aliasing.diff +Patch2: %{name}-%{version}-gcc42-atomic.diff %description PWLib is a moderately large class library that was created many years @@ -106,6 +107,7 @@ %setup -q %patch %patch1 -p1 +%patch2 -p1 %build #autoreconf --force --install @@ -191,6 +193,8 @@ %{_libdir}/pwlib/devices/videoinput/v4l2_pwplugin.so %changelog +* Tue Feb 27 2007 - kkeil@suse.de +- fix configure.ac to detect atomic types for gcc 4.2 * Wed Feb 14 2007 - kkeil@suse.de - downgrade to current stable release 1.10.4 * Mon Oct 02 2006 - kkeil@suse.de ++++++ pwlib-1.10.4-gcc42-atomic.diff ++++++ Index: pwlib-1.10.4/configure.ac =================================================================== --- pwlib-1.10.4.orig/configure.ac +++ pwlib-1.10.4/configure.ac @@ -594,12 +594,23 @@ P_HAS_ATOMIC_INT=0 P_NEEDS_GNU_CXX_NAMESPACE=0 AC_MSG_CHECKING(if atomic integer available) AC_TRY_COMPILE([#include <bits/atomicity.h>], - [_Atomic_word val;], P_HAS_ATOMIC_INT=1) -if test ${P_HAS_ATOMIC_INT} = 1 ; then + [_Atomic_word val;], P_HAS_ATOMIC_INT=1, + AC_TRY_COMPILE([#include <ext/atomicity.h>], + [_Atomic_word val;], P_HAS_ATOMIC_INT=2) +) +if test ${P_HAS_ATOMIC_INT} != 0 ; then AC_MSG_RESULT(yes) AC_MSG_CHECKING(if __exchange_and_add is in __gnu_cxx namespace) - AC_TRY_COMPILE([#include <bits/atomicity.h>], - [_Atomic_word val; __gnu_cxx::__exchange_and_add(&val, 1)], P_NEEDS_GNU_CXX_NAMESPACE=1) + if test ${P_HAS_ATOMIC_INT} = 1 ; then + AC_TRY_COMPILE([#include <bits/atomicity.h>], + [_Atomic_word val; __gnu_cxx::__exchange_and_add(&val, 1)], + P_NEEDS_GNU_CXX_NAMESPACE=1) + else + P_HAS_ATOMIC_INT=1 + AC_TRY_COMPILE([#include <ext/atomicity.h>], + [_Atomic_word val; __gnu_cxx::__exchange_and_add(&val, 1)], + P_NEEDS_GNU_CXX_NAMESPACE=1) + fi if test ${P_NEEDS_GNU_CXX_NAMESPACE} = 1 ; then AC_MSG_RESULT(yes) else @@ -608,6 +619,7 @@ if test ${P_HAS_ATOMIC_INT} = 1 ; then else AC_MSG_RESULT(no) fi + AC_DEFINE_UNQUOTED(P_HAS_ATOMIC_INT, ${P_HAS_ATOMIC_INT}) AC_DEFINE_UNQUOTED(P_NEEDS_GNU_CXX_NAMESPACE, ${P_NEEDS_GNU_CXX_NAMESPACE}) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org
participants (1)
-
root@Hilbert.suse.de