[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash ChangeLog macros/boost.m4
From: |
Tomas Groth |
Subject: |
[Gnash-commit] gnash ChangeLog macros/boost.m4 |
Date: |
Sat, 12 May 2007 10:08:55 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Tomas Groth <tgc> 07/05/12 10:08:55
Modified files:
. : ChangeLog
macros : boost.m4
Log message:
* macros/boost.m4: Re-commited Deannas boost patch with a small
fix.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3173&r2=1.3174
http://cvs.savannah.gnu.org/viewcvs/gnash/macros/boost.m4?cvsroot=gnash&r1=1.41&r2=1.42
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.3173
retrieving revision 1.3174
diff -u -b -r1.3173 -r1.3174
--- ChangeLog 12 May 2007 09:59:44 -0000 1.3173
+++ ChangeLog 12 May 2007 10:08:54 -0000 1.3174
@@ -6,6 +6,7 @@
frame we used, to the next frame we're going to use.
* libbase/curl_adapter.cpp: Fix use of usleep() on windows.
* macros/opengl.m4: Fixed detection on windows.
+ * macros/boost.m4: Re-commited Deannas boost patch with a small fix.
2007-05-12 Sandro Santilli <address@hidden>
Index: macros/boost.m4
===================================================================
RCS file: /sources/gnash/gnash/macros/boost.m4,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -b -r1.41 -r1.42
--- macros/boost.m4 12 May 2007 09:37:56 -0000 1.41
+++ macros/boost.m4 12 May 2007 10:08:55 -0000 1.42
@@ -14,7 +14,7 @@
dnl along with this program; if not, write to the Free Software
dnl Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-dnl $Id: boost.m4,v 1.41 2007/05/12 09:37:56 martinwguy Exp $
+dnl $Id: boost.m4,v 1.42 2007/05/12 10:08:55 tgc Exp $
dnl Boost modules are:
dnl date-time, filesystem. graph. iostreams, program options, python,
@@ -93,62 +93,33 @@
dnl version compiled with GCC instead of the native
dnl compiler. Finally look for the library without any qualitfying
dnl attributes.
- boostnames="boost_thread-gcc-mt boost_thread-mt boost_thread
boost_thread-gcc"
- version_suffix=`echo ${gnash_boost_version} | tr '_' '.'`
- if test x"${ac_cv_path_boost_lib}" = x; then
- AC_MSG_CHECKING([for Boost's thread libraries])
- for i in $libslist; do
- for libname in ${boostnames}; do
- if test -f $i/lib${libname}.a -o -f $i/lib${libname}.${shlibext}; then
- if test x"$i" != x"/usr/lib"; then
- ac_cv_path_boost_lib="-L$i -l${libname}"
- break
- else
- ac_cv_path_boost_lib="-l${libname}"
- break
- fi
- fi
- done
- if test x"${ac_cv_path_boost_lib}" != x ; then
- break;
- fi
- done
- AC_MSG_RESULT(${ac_cv_path_boost_lib})
- else
- for k in ${boostnames}; do
- if test -f ${ac_cv_path_boost_lib}/lib${k}.a -o -f
${ac_cv_path_boost_lib}/lib${k}.${shlibext}; then
- if test x"${ac_cv_path_boost_lib}" != x"/usr/lib"; then
- ac_cv_path_boost_lib="L${ac_cv_path_boost_lib} -l${k}"
- else
- ac_cv_path_boost_lib="-l${k}"
- fi
- fi
- done
- fi
- if test x"${ac_cv_path_boost_lib}" = x; then
- AC_SEARCH_LIBS(cleanup_slots, ${boostnames},
[ac_cv_path_boost_lib="${LIBS}"])
- fi
-
- dnl The naming convention is the same as for threads. -mt is the
- dnl preferance, followed by -gcc-mt, followed by -gcc.
- boostnames="boost_date_time-gcc-mt boost_date_time-mt boost_date_time-gcc
boost_date_time-mt boost_date_time"
+ boost_datenames="boost_date_time-gcc-mt boost_date_time-mt
boost_date_time-gcc boost_date_time-mt boost_date_time"
+ boost_threadnames="boost_thread-gcc-mt boost_thread-mt boost_thread
boost_thread-gcc"
boost_date_time=no
- if test x"${ac_cv_path_boost_lib}" != x; then
- AC_MSG_CHECKING([for Boost's date time libraries])
+ boost_thread=no
+ AC_MSG_CHECKING([for Boost libraries])
for i in $libslist; do
- if test x${boost_date_time} = xyes; then
+ if test x${boost_date_time} = xyes && test x${boost_thread} = xyes; then
break;
fi
- for libname in ${boostnames}; do
+ for libname in ${boost_datenames}; do
+ # ${shlibext}* allows .so to work where .so symlink is not installed
(the * has been removed for now to fix detection on normal systems)
if test -f $i/lib${libname}.a -o -f $i/lib${libname}.${shlibext}; then
boost_date_time=yes
ac_cv_path_boost_lib="${ac_cv_path_boost_lib} -l${libname}"
break;
fi
done
+ for libname in ${boost_threadnames}; do
+ # ${shlibext}* allows .so to work where .so symlink is not installed
(the * has been removed for now to fix detection on normal systems)
+ if test -f $i/lib${libname}.a -o -f $i/lib${libname}.${shlibext}; then
+ boost_thread=yes
+ ac_cv_path_boost_lib="${ac_cv_path_boost_lib} -l${libname}"
+ break;
+ fi
+ done
done
AC_MSG_RESULT(${ac_cv_path_boost_lib})
- fi
dnl we don't want any boost libraries in LIBS, we prefer to keep it seperate.
AC_LANG_POP(C++)
@@ -160,7 +131,9 @@
BOOST_LIBS="$ac_cv_path_boost_lib"
AC_SUBST(BOOST_LIBS)
-dnl AM_CONDITIONAL(HAVE_BOOST, [test x${boost_date_time} = xyes])
+ # This isn't right: you don't need boot date-time installed unless u build
+ # cygnal, and it is sometimes a separate package from Boost core and thread.
+ AM_CONDITIONAL(HAVE_BOOST, [test x${boost_date_time} = xyes && test
x${boost_thread} - xyes])
])
# Local Variables: