[packages/povray] Fix boost_thread detection for boost 1.50
baggins
baggins at pld-linux.org
Wed Jul 11 12:09:22 CEST 2012
commit 08ddefcf20ad0b3494639fe3b3a0bf8cb6a21db1
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Wed Jul 11 11:58:29 2012 +0200
Fix boost_thread detection for boost 1.50
boost-1.50.patch | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
---
diff --git a/boost-1.50.patch b/boost-1.50.patch
new file mode 100644
index 0000000..5117496
--- /dev/null
+++ b/boost-1.50.patch
@@ -0,0 +1,35 @@
+--- povray-3.7.0.RC6/unix/config/ax_boost_thread.m4~ 2012-02-05 21:54:21.000000000 +0100
++++ povray-3.7.0.RC6/unix/config/ax_boost_thread.m4 2012-07-11 11:55:14.040194944 +0200
+@@ -104,23 +104,26 @@
+ for libextension in `ls $BOOSTLIBDIR/libboost_thread*.so* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_thread.*\)\.so.*$;\1;'` `ls $BOOSTLIBDIR/libboost_thread*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_thread.*\)\.a*$;\1;'`; do
+ ax_lib=${libextension}
+ AC_CHECK_LIB($ax_lib, exit,
+- [BOOST_THREAD_LIB="-l$ax_lib"; AC_SUBST(BOOST_THREAD_LIB) link_thread="yes"; break],
+- [link_thread="no"])
++ [BOOST_THREAD_LIB="-l$ax_lib -lboost_system"; AC_SUBST(BOOST_THREAD_LIB) link_thread="yes"; break],
++ [link_thread="no"],
++ [-lboost_system])
+ done
+ if test "x$link_thread" != "xyes"; then
+ for libextension in `ls $BOOSTLIBDIR/boost_thread*.dll* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_thread.*\)\.dll.*$;\1;'` `ls $BOOSTLIBDIR/boost_thread*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_thread.*\)\.a*$;\1;'` ; do
+ ax_lib=${libextension}
+ AC_CHECK_LIB($ax_lib, exit,
+- [BOOST_THREAD_LIB="-l$ax_lib"; AC_SUBST(BOOST_THREAD_LIB) link_thread="yes"; break],
+- [link_thread="no"])
++ [BOOST_THREAD_LIB="-l$ax_lib -lboost_system"; AC_SUBST(BOOST_THREAD_LIB) link_thread="yes"; break],
++ [link_thread="no"],
++ [-lboost_system])
+ done
+ fi
+
+ else
+ for ax_lib in $ax_boost_user_thread_lib boost_thread-$ax_boost_user_thread_lib; do
+ AC_CHECK_LIB($ax_lib, exit,
+- [BOOST_THREAD_LIB="-l$ax_lib"; AC_SUBST(BOOST_THREAD_LIB) link_thread="yes"; break],
+- [link_thread="no"])
++ [BOOST_THREAD_LIB="-l$ax_lib -lboost_system"; AC_SUBST(BOOST_THREAD_LIB) link_thread="yes"; break],
++ [link_thread="no"],
++ [-lboost_system])
+ done
+
+ fi
More information about the pld-cvs-commit
mailing list