1 2008-01-11 Benoit Sigoure <tsuna@lrde.epita.fr>
3 Handle the `gcc' tag used by newer versions of Boost.
4 * build-aux/boost.m4 (_BOOST_FIND_COMPILER_TAG): When the compiler
5 is gcc also try the `gcc' tag (after the version-specific tag e.g.
6 `gcc41') since newer versions of Boost (>= 1.35?) seem to do that.
7 Report and patch by Daniel Herring.
9 2008-01-11 Benoit Sigoure <tsuna@lrde.epita.fr>
11 Handle multiple versions of Boost under the same prefix.
12 * build-aux/boost.m4 (BOOST_REQUIRE): Find the headers of all the
13 versions of Boost installed. If you have, say,
14 /usr/local/include/boost which is a symlink to
15 /usr/local/include/boost-1_34 and you also have
16 /usr/local/include/boost-1_35 installed, the macro needs to find
17 them all if you required Boost 1.35 for instance.
18 Bug reported by Daniel Herring.
20 2008-01-07 Benoit Sigoure <tsuna@lrde.epita.fr>
22 Fix the test for Boost.Test.
23 Some extra code is required to use Boost.Test which defines its own
25 * build-aux/boost.m4 (BOOST_FIND_LIB): Accept a 5th optional
27 (BOOST_TEST): Use it to define `init_unit_test_suite'.
28 * tests/testsuite.at: Add a test for the static flavor of
31 Problem reported by Jens Seidel. Patch contributed by Hubert
34 2008-01-06 Benoit Sigoure <tsuna@lrde.epita.fr>
36 Add support for Boost.Serialization.
37 * README: Document the change.
38 * build-aux/boost.m4 (BOOST_SERIALIZATION): New.
39 * tests/testsuite.at: Test the new macro.
41 2007-12-17 Benoit Sigoure <tsuna@lrde.epita.fr>
43 Do not try to link with non existent static archives.
44 * build-aux/boost.m4 (BOOST_FIND_LIB): Here.
45 Suggested by Daniel Herring.
47 2007-12-17 Benoit Sigoure <tsuna@lrde.epita.fr>
49 Move a test outside a huge loop.
50 * build-aux/boost.m4 (BOOST_FIND_LIB): Check that $libext is set (by
51 Libtool) and non-empty earlier.
53 2007-12-16 Benoit Sigoure <tsuna@lrde.epita.fr>
55 Re-order the macros alphabetically.
56 * build-aux/boost.m4 (BOOST_TRIBOOL): Move to the correct place.
58 2007-12-16 Benoit Sigoure <tsuna@lrde.epita.fr>
60 Add support for Boost.Tokenizer.
61 * README: Mention the new lib.
62 * build-aux/boost.m4 (BOOST_TOKENIZER): New.
63 * tests/testsuite.at: Test the new macro.
65 2007-12-03 Benoit Sigoure <tsuna@lrde.epita.fr>
67 Mention the Libtool dependency in the M4 file.
68 * build-aux/boost.m4: Here.
69 Also update the serial...
71 2007-12-03 Benoit Sigoure <tsuna@lrde.epita.fr>
73 Support Boost.IOStreams.
74 * README: Mention the new library.
75 * build-aux/boost.m4 (BOOST_IOSTREAMS): New.
76 Contribution of Jens Seidel.
77 * tests/testsuite.at: Test the new macro.
79 2007-12-03 Benoit Sigoure <tsuna@lrde.epita.fr>
81 Update the documentation.
82 * README: Fix a typo. Mention an inconsistency with BOOST_TEST.
83 * build-aux/boost.m4 (BOOST_REQUIRE): Mention explicitely that
84 VERSION can be of the form "X.Y.Z".
85 Report by Jens Seidel.
87 2007-12-03 Benoit Sigoure <tsuna@lrde.epita.fr>
89 Do not depend on Autoconf 2.61.
90 AS_TEST_X was introduced in 2.61. Alas, 2.60 is still common out
91 there, so let's use $as_executable_p instead.
93 * build-aux/boost.m4 (_BOOST_AC_LINK_IFELSE): Here.
94 Report by Jens Seidel.
96 2007-11-30 Benoit Sigoure <tsuna@lrde.epita.fr>
98 Add support for Boost.Functional/Hash.
99 * README: Mention the new library.
100 * build-aux/boost.m4 (BOOST_HASH): New.
101 * tests/testsuite.at: Test the new macro.
103 2007-11-24 Benoit Sigoure <tsuna@lrde.epita.fr>
108 2007-11-24 Benoit Sigoure <tsuna@lrde.epita.fr>
110 Improve the portability of BOOST_FILESYSTEM.
111 * build-aux/boost.m4: Do not check for boost/filesystem.hpp as it
112 was introduced in 1.34. Check for boost/filesystem/path.hpp
114 Report by Staffan Gimåker.
116 2007-11-21 Benoit Sigoure <tsuna@lrde.epita.fr>
119 * build-aux/boost.m4: Fix a couple of typos.
120 Reported by Akim Demaille.
122 2007-11-20 Benoit Sigoure <tsuna@lrde.epita.fr>
125 * build-aux/boost.m4: Aesthetic changes.
127 2007-11-20 Benoit Sigoure <tsuna@lrde.epita.fr>
129 Add a test for Boost.Wave.
130 * README: Mention the new library.
131 * build-aux/boost.m4 (BOOST_WAVE): New. Contributed by
133 * tests/testsuite.at: Add a test.
135 2007-11-20 Benoit Sigoure <tsuna@lrde.epita.fr>
137 Add checks for Bind, Function and Ref.
138 * README: Mention the new libraries.
139 * build-aux/boost.m4 (BOOST_BIND, BOOST_FUNCTION, BOOST_REF): New.
140 * tests/testsuite.at: Test the new macros.
141 Contribution of Staffan Gimåker.
143 2007-11-20 Benoit Sigoure <tsuna@lrde.epita.fr>
145 Fix the version check.
146 The version check was completely wrong (!) and would always succeed.
147 * build-aux/boost.m4 (BOOST_REQUIRE): Properly compute the various
148 parts of the version (major, minor, sub-minor) from the
149 BOOST_VERSION macro defined in version.hpp.
150 Bug reported by Staffan Gimåker.
152 2007-11-20 Benoit Sigoure <tsuna@lrde.epita.fr>
155 * build-aux/boost.m4: Correct various tyops everywhere.
157 2007-11-20 Benoit Sigoure <tsuna@lrde.epita.fr>
159 Check that version.hpp exists before trying an include path.
160 * build-aux/boost.m4 (BOOST_REQUIRE): Here. This ensures that we
161 don't get the include path wrong *but* the test succeeds because
162 Boost is reachable thanks to the default include path of the
163 compiler. Bug reported by Staffan Gimåker.
165 2007-11-20 Benoit Sigoure <tsuna@lrde.epita.fr>
168 * build-aux/boost.m4: Sort the macros alphabetically (yes, `T' is
171 2007-11-20 Benoit Sigoure <tsuna@lrde.epita.fr>
173 Add support for Date_Time, Regex, Signals and Test.
174 * README: Mention the new libraries.
175 * build-aux/boost.m4 (BOOST_DATE_TIME, BOOST_REGEX, BOOST_SIGNALS)
176 (BOOST_TEST): New tests contributed by Staffan Gimåker.
177 * tests/testsuite.at: Test the new macros.
179 2007-11-20 Benoit Sigoure <tsuna@lrde.epita.fr>
181 Aggressively optimize the checks against Boost libraries.
182 Checking for Boost libraries that require linking was very slow
183 because it took several iteration to discover the proper link flags
184 to use to properly compile+link a C++ test file. The test file was
185 thus compiled over and over again until the right set of flag is
186 found. Compilation is time-consuming, especially with Boost, so the
187 trick is to compile the file once and then try to link it.
188 Unfortunately, Autoconf doesn't seem to allow this and always wants
189 to delete the intermediate object file. This file thus bypasses one
190 of the Autoconf internal macro to retain the object file.
191 On a test case which checks for 2 libraries, the configure time is
192 reduced by a factor of 5 on my laptop (~100s -> ~20s).
193 * build-aux/boost.m4 (BOOST_FIND_LIB): Compile the test file once
194 and then try to link it.
195 (_BOOST_AC_LINK_IFELSE): Fork of the Autoconf macro _AC_LINK_IFELSE.
196 Optimization suggested by Daniel Herring.
198 2007-11-20 Benoit Sigoure <tsuna@lrde.epita.fr>
200 Optimize the detection of preference for MT flavors.
201 * build-aux/boost.m4 (BOOST_FIND_LIB): Move a compilation test...
202 (_BOOST_GUESS_WHETHER_TO_USE_MT): Here. So that the test is only
203 executed once per configure script.
205 2007-11-20 Benoit Sigoure <tsuna@lrde.epita.fr>
207 Fix the test of Boost.Graph.
208 * build-aux/boost.m4 (BOOST_GRAPH): Fix the C++ code used to test
211 2007-11-20 Benoit Sigoure <tsuna@lrde.epita.fr>
213 Do not pollute the user-reserved variables.
214 * build-aux/boost.m4 (BOOST_FIND_LIB): Fix a bug: when a library was
215 found, the LDFLAGS and LIBS weren't properly reset and the macro was
216 thus polluting user-reserved variables. This needs to be tested in
218 Also do not pass -R to the compiler during the tests, this flag is
219 only usable safely with libtool.
221 2007-11-17 Benoit Sigoure <tsuna@lrde.epita.fr>
223 Fix a typo in BOOST_THREADS.
224 * build-aux/boost.m4 (BOOST_THREADS): Properly set
225 `boost_threads_save_CPPFLAGS' to `CPPFLAGS' instead of `LIBS'!
226 Bug reported by Daniel Herring.
228 2007-11-13 Benoit Sigoure <tsuna@lrde.epita.fr>
230 Preserve the original values of --host / --build.
231 This fixes `make check' in cross-compilation environments.
232 * tests/atlocal.in ($build, $host): Replace with ...
233 ($build_alias, $host_alias): ... these. New.
234 * tests/testsuite.at (AT_CHECK_AUTOCONF): Use them here.
236 2007-11-12 Benoit Sigoure <tsuna@lrde.epita.fr>
238 Add keywords to the testsuite.
239 * tests/testsuite.at (AT_CHECK_MACRO, AT_CHECK_MACRO_CROSS): Add an
240 argument in 2nd position (minor backward incompatible change) to
241 specify keywords for the tests.
242 Use keywords for all tests (core/lib/header with or without cross).
244 2007-11-12 Benoit Sigoure <tsuna@lrde.epita.fr>
246 Add tests for Boost.Program_options.
247 * README: Mention the new library.
248 * build-aux/boost.m4 (BOOST_PROGRAM_OPTIONS): New macro.
249 * tests/testsuite.at: Add a test for the new macro.
251 2007-11-03 Benoit Sigoure <tsuna@lrde.epita.fr>
253 Use Libtool and -R to encode run paths.
254 * README: Mention the dependencies more clearly near the beginning.
255 Add a step to use Libtool if it's not already used.
256 * build-aux/boost.m4 (BOOST_FIND_LIB): Add -R flags in the LDFLAGS
257 and fix a bug when --with-boost isn't used which leads to
258 $with_boost being empty which leads that /lib is checked first.
259 * configure.ac: Invoke AC_PROG_LIBTOOL.
260 * tests/testsuite.at (AT_CONFIGURE_AC): Import the content of
261 aclocal.m4 without the m4_include's in order to use AC_PROG_LIBTOOL
262 without getting the hassle of libtoolize.
263 (AT_CHECK_MACRO): Do not pass -W obsolete to autoconf to avoid
264 spurious warnings due to Libtool.
266 2007-11-02 Benoit Sigoure <tsuna@lrde.epita.fr>
268 Another fix for GCC3 and Boost.Thread.
269 * build-aux/boost.m4 (BOOST_THREADS): Put -pthread in
270 BOOST_CPPFLAGS (required for GCC3).
272 2007-11-02 Benoit Sigoure <tsuna@lrde.epita.fr>
274 Change the order of the tests.
275 * tests/testsuite.at: Do the tests that require linking first
276 (because they are more likely to fail).
278 2007-11-02 Benoit Sigoure <tsuna@lrde.epita.fr>
280 Add tests for SmartPtr, StringAlgo, Tribool and Tuple.
281 * README: Mention the new libraries.
282 * build-aux/boost.m4 (BOOST_SMART_PTR, BOOST_STRING_ALGO)
283 (BOOST_TRIBOOL, BOOST_TUPLE): New.
284 * tests/testsuite.at: Test the new macros.
286 2007-11-02 Benoit Sigoure <tsuna@lrde.epita.fr>
291 * README: Mention the license and how to fetch the latest version.
292 * build-aux/boost.m4: Mention how to fetch the latest version.
293 * configure.ac (AM_INIT_AUTOMAKE): Drop `foreign'.
294 * tests/Makefile.am ($(TESTSUITE)): Adjust dependencies to fix
297 2007-11-02 Benoit Sigoure <tsuna@lrde.epita.fr>
299 Properly find the pthreads flags for use with Boost.Thread.
300 * build-aux/boost.m4 (_BOOST_PTHREAD_FLAG): New internal helper.
301 (BOOST_THREADS): Use it. Use the pthread flag during the tests for
303 * tests/testsuite.at: Since the test for Boost.Thread is now more
304 costly, do the cross-compilation test with Boost.Filesystem instead.
306 2007-11-01 Benoit Sigoure <tsuna@lrde.epita.fr>
308 Fix the testsuite to preserve the various arguments of configure.
309 * build-aux/boost.m4 (BOOST_REQUIRE): Define
310 DISTCHECK_CONFIGURE_FLAGS to automatically preserve the --with-boost
312 * configure.ac: Use AC_CANONICAL_HOST.
313 (AC_CONFIG_FILES): Generate tests/package.m4.
314 * tests/Makefile.am (EXTRA_DIST, $(TESTSUITE)): Adjust.
315 No longer need to generate package.m4 since it's now generated from
317 * tests/atlocal.in (CXX, LD, CONFIGURE_FLAGS, build, host): New.
318 * tests/package.m4.in: New.
319 * tests/testsuite.at: Invoke configure with the proper flags (that
320 is, preserve the original configuration).
322 2007-11-01 Benoit Sigoure <tsuna@lrde.epita.fr>
326 * build-aux/boost.m4: Advertise the Git repository.
328 2007-11-01 Benoit Sigoure <tsuna@lrde.epita.fr>
330 Fix the detection of the toolset name for GCC.
331 * build-aux/boost.m4 (_BOOST_gcc_test): New internal helper.
332 (_BOOST_FIND_COMPILER_TAG): Use _BOOST_gcc_test to take into account
333 the minor version number of GCC into the toolset name.
334 * configure.ac: Invoke _BOOST_FIND_COMPILER_TAG to warn earlier
335 about unknown toolsets.
337 2007-11-01 Benoit Sigoure <tsuna@lrde.epita.fr>
339 Add a test for Boost.Variant.
340 * build-aux/boost.m4 (BOOST_VARIANT): New.
341 * tests/testsuite.at: Test the new macro.
343 2007-11-01 Benoit Sigoure <tsuna@lrde.epita.fr>
345 Add tests for Boost.Format and Boost.Utility.
346 * build-aux/boost.m4 (BOOST_FORMAT, BOOST_UTILITY): New.
347 * tests/testsuite.at: Test the new macros.
349 2007-11-01 Benoit Sigoure <tsuna@lrde.epita.fr>
351 Add a check for Boost.Conversion.
352 * build-aux/boost.m4 (BOOST_CONVERSION): New.
353 * tests/testsuite.at: Add a test for the new macro.
355 2007-11-01 Benoit Sigoure <tsuna@lrde.epita.fr>
357 Add a check for Boost.Filesystem.
358 * build-aux/boost.m4 (BOOST_FILESYSTEM): New.
359 * tests/testsuite.at: Add a test for the new macro.
361 2007-11-01 Benoit Sigoure <tsuna@lrde.epita.fr>
363 Add some cross-compilation tests.
364 * tests/testsuite.at: Here.
366 2007-11-01 Benoit Sigoure <tsuna@lrde.epita.fr>
368 Add a check for Boost.Graph.
369 * build-aux/boost.m4 (BOOST_GRAPH): New.
370 * tests/testsuite.at: Test the new macro.
372 2007-11-01 Benoit Sigoure <tsuna@lrde.epita.fr>
374 Add macros for Boost.Foreach and Boost.Threads.
375 * build-aux/boost.m4 (BOOST_FOREACH, BOOST_THREADS): New.
376 * tests/testsuite.at: Test the new macros.
378 2007-11-01 Benoit Sigoure <tsuna@lrde.epita.fr>
381 * configure.ac: Use AC_CONFIG_HEADERS.
382 * tests/Makefile.am (CLEANFILES): New.
383 Make package.m4 depend on Makefile.in. Disable installcheck-local.
385 2007-11-01 Benoit Sigoure <tsuna@lrde.epita.fr>
387 Add macros to check for Boost libraries and headers.
388 * build-aux/boost.m4 (BOOST_REQUIRE): Restrain variable names to the
389 pseudo /_?boost/i namespace. Look up the version string of Boost in
391 (BOOST_FIND_HEADER, BOOST_FIND_LIB): New.
393 2007-10-31 Benoit Sigoure <tsuna@lrde.epita.fr>
396 * Makefile.am (SUBDIRS): New.
397 * configure.ac: Adjust for the testsuite.
398 * tests/Makefile.am: New.
399 * tests/atlocal.in: Copy from Makefile.am.
400 * tests/testsuite.at: New.
402 2007-10-31 Benoit Sigoure <tsuna@lrde.epita.fr>
408 * build-aux/boost.m4: New.
409 (BOOST_REQUIRE): New.