1 --- configure.old 2013-10-15 04:17:59.000000000 +0200
2 +++ configure 2015-02-09 23:41:48.525767041 +0100
3 @@ -1471,7 +1471,7 @@ Optional Features:
4 --disable-libtool-lock avoid locking (might break parallel builds)
5 --enable-static-boost Prefer the static boost libraries over the shared
7 - --disable-werror Treat all warnings as errors, useful for development
8 + --enable-werror Treat all warnings as errors, useful for development
9 --enable-debug Build with debug features in mind.]
10 --disable-spreadsheet-model
11 Disable the spreadsheet model implementation in
12 @@ -2592,7 +2592,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
14 ac_config_headers="$ac_config_headers config.h"
16 -am__api_version='1.12'
17 +am__api_version='1.14'
20 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
21 @@ -2805,8 +2805,8 @@ if test x"${MISSING+set}" != xset; then
24 # Use eval to expand $SHELL
25 -if eval "$MISSING --run true"; then
26 - am_missing_run="$MISSING --run "
27 +if eval "$MISSING --is-lightweight"; then
28 + am_missing_run="$MISSING "
31 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
32 @@ -3046,6 +3046,45 @@ else
34 rmdir .tst 2>/dev/null
36 +# Check whether --enable-silent-rules was given.
37 +if test "${enable_silent_rules+set}" = set; then :
38 + enableval=$enable_silent_rules;
41 +case $enable_silent_rules in # (((
42 + yes) AM_DEFAULT_VERBOSITY=0;;
43 + no) AM_DEFAULT_VERBOSITY=1;;
44 + *) AM_DEFAULT_VERBOSITY=1;;
47 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
48 +$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
49 +if ${am_cv_make_support_nested_variables+:} false; then :
50 + $as_echo_n "(cached) " >&6
52 + if $as_echo 'TRUE=$(BAR$(V))
58 +.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
59 + am_cv_make_support_nested_variables=yes
61 + am_cv_make_support_nested_variables=no
64 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
65 +$as_echo "$am_cv_make_support_nested_variables" >&6; }
66 +if test $am_cv_make_support_nested_variables = yes; then
68 + AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
70 + AM_V=$AM_DEFAULT_VERBOSITY
71 + AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
75 if test "`cd $srcdir && pwd`" != "`pwd`"; then
76 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
77 # is not polluted with repeated "-I."
78 @@ -3096,19 +3135,70 @@ AUTOHEADER=${AUTOHEADER-"${am_missing_ru
80 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
83 +# For better backward compatibility. To be removed once Automake 1.9.x
84 +# dies out for good. For more background, see:
85 +# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
86 +# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
89 # We need awk for the "check" target. The system "awk" is bad on
91 # Always define AMTAR for backward compatibility. Yes, it's still used
92 # in the wild :-( We should find a proper way to deprecate it ...
96 +# We'll loop over all known methods to create a tar archive until one works.
97 +_am_tools='gnutar pax cpio none'
99 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
106 +# POSIX will say in a future version that running "rm -f" with no argument
107 +# is OK; and we want to be able to make that assumption in our Makefile
108 +# recipes. So use an aggressive probe to check that the usage we want is
109 +# actually supported "in the wild" to an acceptable degree.
110 +# See automake bug#10828.
111 +# To make any issue more visible, cause the running configure to be aborted
112 +# by default if the 'rm' program in use doesn't match our expectations; the
113 +# user can still override this though.
114 +if rm -f && rm -fr && rm -rf; then : OK; else
118 +Your 'rm' program seems unable to run without file operands specified
119 +on the command line, even when the '-f' option is present. This is contrary
120 +to the behaviour of most rm programs out there, and not conforming with
121 +the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
123 +Please tell bug-automake@gnu.org about your system, including the value
124 +of your $PATH and any error possibly output before this message. This
125 +can help us improve future automake versions.
128 + if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
129 + echo 'Configuration will proceed anyway, since you have set the' >&2
130 + echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
134 +Aborting the configuration process, to ensure you take notice of the issue.
136 +You can download and install GNU coreutils to get an 'rm' implementation
137 +that behaves properly: <http://www.gnu.org/software/coreutils/>.
139 +If you want to complete the configuration process using your problematic
140 +'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
141 +to "yes", and re-run configure.
144 + as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
147 # Check whether --enable-silent-rules was given.
148 if test "${enable_silent_rules+set}" = set; then :
149 enableval=$enable_silent_rules;
150 @@ -4011,6 +4101,65 @@ ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS
151 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
152 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
155 +ac_cpp='$CPP $CPPFLAGS'
156 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
157 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
158 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
159 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
160 +$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
161 +if ${am_cv_prog_cc_c_o+:} false; then :
162 + $as_echo_n "(cached) " >&6
164 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
165 +/* end confdefs.h. */
175 + # Make sure it works both with $CC and with simple cc.
176 + # Following AC_PROG_CC_C_O, we do the test twice because some
177 + # compilers refuse to overwrite an existing .o file with -o,
178 + # though they will create one.
179 + am_cv_prog_cc_c_o=yes
180 + for am_i in 1 2; do
181 + if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
182 + ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
184 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
185 + (exit $ac_status); } \
186 + && test -f conftest2.$ac_objext; then
189 + am_cv_prog_cc_c_o=no
193 + rm -f core conftest*
196 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
197 +$as_echo "$am_cv_prog_cc_c_o" >&6; }
198 +if test "$am_cv_prog_cc_c_o" != yes; then
199 + # Losing compiler, so override with the script.
200 + # FIXME: It is wrong to rewrite CC.
201 + # But if we don't then we get into trouble of one sort or another.
202 + # A longer-term fix would be to have automake use am__CC in this case,
203 + # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
204 + CC="$am_aux_dir/compile $CC"
207 +ac_cpp='$CXXCPP $CPPFLAGS'
208 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
209 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
210 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
213 depcc="$CC" am_compiler_list=
215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
216 @@ -7073,7 +7222,7 @@ ia64-*-hpux*)
220 -x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
221 +x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
222 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
223 # Find out which ABI we are using.
224 echo 'int i;' > conftest.$ac_ext
225 @@ -7091,7 +7240,10 @@ s390*-*linux*|s390*-*tpf*|sparc*-*linux*
227 LD="${LD-ld} -m elf_i386"
229 - ppc64-*linux*|powerpc64-*linux*)
230 + powerpc64le-*linux*)
231 + LD="${LD-ld} -m elf32lppclinux"
234 LD="${LD-ld} -m elf32ppclinux"
237 @@ -7110,7 +7262,10 @@ s390*-*linux*|s390*-*tpf*|sparc*-*linux*
239 LD="${LD-ld} -m elf_x86_64"
241 - ppc*-*linux*|powerpc*-*linux*)
243 + LD="${LD-ld} -m elf64lppc"
246 LD="${LD-ld} -m elf64ppc"
248 s390*-*linux*|s390*-*tpf*)
249 @@ -11133,10 +11288,14 @@ fi
250 # before this can be enabled.
251 hardcode_into_libs=yes
253 + # Add ABI-specific directories to the system library path.
254 + sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
256 # Append ld.so.conf contents to the search path
257 if test -f /etc/ld.so.conf; then
258 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
259 - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
260 + sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
264 # We used to test for /lib/ld.so.1 and disable shared libraries on
265 @@ -14964,10 +15123,14 @@ fi
266 # before this can be enabled.
267 hardcode_into_libs=yes
269 + # Add ABI-specific directories to the system library path.
270 + sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
272 # Append ld.so.conf contents to the search path
273 if test -f /etc/ld.so.conf; then
274 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
275 - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
276 + sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
280 # We used to test for /lib/ld.so.1 and disable shared libraries on
281 @@ -16040,7 +16203,7 @@ $as_echo "#define BOOST_ALL_NO_LIB /**/"
282 # ======================
283 # Set required ixion api
284 # ======================
285 -IXION_REQUIRED_API_VERSION=0.8
286 +IXION_REQUIRED_API_VERSION=0.10
290 @@ -16049,7 +16212,7 @@ IXION_REQUIRED_API_VERSION=0.8
291 ORCUS_API_VERSION=0.8
294 -echo "$as_me: this is boost.m4 serial 18" >&5
295 +echo "$as_me: this is boost.m4 serial 24" >&5
297 boost_version_req=1.36
299 @@ -16193,17 +16356,30 @@ $as_echo_n "checking for Boost's header
300 if ${boost_cv_lib_version+:} false; then :
301 $as_echo_n "(cached) " >&6
303 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
305 +ac_cpp='$CXXCPP $CPPFLAGS'
306 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
307 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
308 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
309 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
310 /* end confdefs.h. */
311 #include <boost/version.hpp>
312 boost-lib-version = BOOST_LIB_VERSION
314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
316 + grep -Ev '^(conftest.cpp| *command-line arguments :)' |
318 - $SED -n -e "/^boost-lib-version = /{s///;s/\"//g;p;q;}" >conftest.i 2>&1; then :
320 + $SED -n -e "/^ *boost-lib-version = /{s///;s/[\" ]//g;p;q;}" >conftest.i 2>&1; then :
321 boost_cv_lib_version=`cat conftest.i`
325 +ac_cpp='$CXXCPP $CPPFLAGS'
326 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
327 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
328 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_version" >&5
332 @@ -16212,7 +16387,7 @@ $as_echo "$boost_cv_lib_version" >&6; }
333 boost_major_version=`echo "$boost_cv_lib_version" | sed 's/_//;s/_.*//'`
334 case $boost_major_version in #(
336 - as_fn_error $? "invalid value: boost_major_version=$boost_major_version" "$LINENO" 5
337 + as_fn_error $? "invalid value: boost_major_version='$boost_major_version'" "$LINENO" 5
341 @@ -16244,14 +16419,53 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
342 # I'm not sure about my test for `il' (be careful: Intel's ICC pre-defines
343 # the same defines as GCC's).
345 + "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 0 && !defined __ICC && \
346 + (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
347 + || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw50" \
348 + "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc50" \
349 + "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 10 && !defined __ICC && \
350 + (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
351 + || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw410" \
352 + "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 10 && !defined __ICC @ gcc410" \
353 + "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 9 && !defined __ICC && \
354 + (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
355 + || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw49" \
356 + "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 9 && !defined __ICC @ gcc49" \
357 + "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 8 && !defined __ICC && \
358 + (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
359 + || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw48" \
360 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 8 && !defined __ICC @ gcc48" \
361 + "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 7 && !defined __ICC && \
362 + (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
363 + || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw47" \
364 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 7 && !defined __ICC @ gcc47" \
365 + "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 6 && !defined __ICC && \
366 + (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
367 + || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw46" \
368 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 6 && !defined __ICC @ gcc46" \
369 + "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 5 && !defined __ICC && \
370 + (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
371 + || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw45" \
372 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 5 && !defined __ICC @ gcc45" \
373 + "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 4 && !defined __ICC && \
374 + (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
375 + || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw44" \
376 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 4 && !defined __ICC @ gcc44" \
377 + "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 3 && !defined __ICC && \
378 + (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
379 + || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw43" \
380 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc43" \
381 + "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && !defined __ICC && \
382 + (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
383 + || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw42" \
384 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc42" \
385 + "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 1 && !defined __ICC && \
386 + (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
387 + || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw41" \
388 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc41" \
389 + "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 0 && !defined __ICC && \
390 + (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
391 + || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw40" \
392 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc40" \
393 "defined __GNUC__ && __GNUC__ == 3 && !defined __ICC \
394 && (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
395 @@ -16338,6 +16552,11 @@ else
398 # Check whether we do better use `mt' even though we weren't ask to.
400 +ac_cpp='$CXXCPP $CPPFLAGS'
401 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
402 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
403 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
405 /* end confdefs.h. */
407 @@ -16361,6 +16580,11 @@ else
408 boost_guess_use_mt=false
410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
412 +ac_cpp='$CXXCPP $CPPFLAGS'
413 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
414 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
415 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
417 if test x"$boost_cv_inc_path" = xno; then
418 { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for the Boost system library" >&5
419 @@ -16402,13 +16626,6 @@ fi
421 boost_save_CPPFLAGS=$CPPFLAGS
422 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
423 -# Now let's try to find the library. The algorithm is as follows: first look
424 -# for a given library name according to the user's PREFERRED-RT-OPT. For each
425 -# library name, we prefer to use the ones that carry the tag (toolset name).
426 -# Each library is searched through the various standard paths were Boost is
427 -# usually installed. If we can't find the standard variants, we try to
428 -# enforce -mt (for instance on MacOSX, libboost_threads.dylib doesn't exist
429 -# but there's -obviously- libboost_threads-mt.dylib).
430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Boost system library" >&5
431 $as_echo_n "checking for the Boost system library... " >&6; }
432 if ${boost_cv_lib_system+:} false; then :
433 @@ -16416,19 +16633,19 @@ if ${boost_cv_lib_system+:} false; then
435 boost_cv_lib_system=no
437 - mt | mt-) boost_mt=-mt; boost_rtopt=;; #(
438 - mt* | mt-*) boost_mt=-mt; boost_rtopt=`expr "X" : 'Xmt-*\(.*\)'`;; #(
439 - *) boost_mt=; boost_rtopt=;;
440 + (mt | mt-) boost_mt=-mt; boost_rtopt=;; #(
441 + (mt* | mt-*) boost_mt=-mt; boost_rtopt=`expr "X" : 'Xmt-*\(.*\)'`;; #(
442 + (*) boost_mt=; boost_rtopt=;;
444 if test $enable_static_boost = yes; then
445 boost_rtopt="s$boost_rtopt"
447 # Find the proper debug variant depending on what we've been asked to find.
448 case $boost_rtopt in #(
449 - *d*) boost_rt_d=$boost_rtopt;; #(
450 - *[sgpn]*) # Insert the `d' at the right place (in between `sg' and `pn')
451 + (*d*) boost_rt_d=$boost_rtopt;; #(
452 + (*[sgpn]*) # Insert the `d' at the right place (in between `sg' and `pn')
453 boost_rt_d=`echo "$boost_rtopt" | sed 's/\(s*g*\)\(p*n*\)/\1\2/'`;; #(
454 - *) boost_rt_d='-d';;
455 + (*) boost_rt_d='-d';;
457 # If the PREFERRED-RT-OPT are not empty, prepend a `-'.
458 test -n "$boost_rtopt" && boost_rtopt="-$boost_rtopt"
459 @@ -16459,21 +16676,22 @@ fi
460 rm -f core conftest.err conftest.$ac_objext
461 ac_objext=$boost_save_ac_objext
463 -# Don't bother to ident the 6 nested for loops, only the 2 innermost ones
465 +# Don't bother to ident the following nested for loops, only the 2
466 +# innermost ones matter.
467 +for boost_lib_ in system; do
468 for boost_tag_ in -$boost_cv_lib_tag ''; do
469 for boost_ver_ in -$boost_cv_lib_version ''; do
470 for boost_mt_ in $boost_mt -mt ''; do
471 for boost_rtopt_ in $boost_rtopt '' -d; do
473 - boost_system$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_ \
474 - boost_system$boost_tag_$boost_rtopt_$boost_ver_ \
475 - boost_system$boost_tag_$boost_mt_$boost_ver_ \
476 - boost_system$boost_tag_$boost_ver_
477 + boost_$boost_lib_$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_ \
478 + boost_$boost_lib_$boost_tag_$boost_rtopt_$boost_ver_ \
479 + boost_$boost_lib_$boost_tag_$boost_mt_$boost_ver_ \
480 + boost_$boost_lib_$boost_tag_$boost_ver_
482 # Avoid testing twice the same lib
483 case $boost_failed_libs in #(
484 - *@$boost_lib@*) continue;;
485 + (*@$boost_lib@*) continue;;
487 # If with_boost is empty, we'll search in /lib first, which is not quite
488 # right so instead we'll try to a location based on where the headers are.
489 @@ -16483,14 +16701,17 @@ for boost_rtopt_ in $boost_rtopt '' -d;
490 /opt/local/lib* /usr/local/lib* /opt/lib* /usr/lib* \
491 "$with_boost" C:/Boost/lib /lib*
493 - test -e "$boost_ldpath" || continue
494 + # Don't waste time with directories that don't exist.
495 + if test x"$boost_ldpath" != x && test ! -e "$boost_ldpath"; then
498 boost_save_LDFLAGS=$LDFLAGS
499 # Are we looking for a static library?
500 case $boost_ldpath:$boost_rtopt_ in #(
501 - *?*:*s*) # Yes (Non empty boost_ldpath + s in rt opt)
502 + (*?*:*s*) # Yes (Non empty boost_ldpath + s in rt opt)
503 boost_cv_lib_system_LIBS="$boost_ldpath/lib$boost_lib.$libext"
504 test -e "$boost_cv_lib_system_LIBS" || continue;; #(
505 - *) # No: use -lboost_foo to find the shared library.
506 + (*) # No: use -lboost_foo to find the shared library.
507 boost_cv_lib_system_LIBS="-l$boost_lib";;
509 boost_save_LIBS=$LIBS
510 @@ -16519,11 +16740,11 @@ $as_echo "$ac_try_echo"; } >&5
512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
513 test $ac_status = 0; } && {
514 - test -z "$ac_cxx_werror_flag" ||
515 - test ! -s conftest.err
516 + test -z "$ac_cxx_werror_flag" ||
517 + test ! -s conftest.err
518 } && test -s conftest$ac_exeext && {
519 - test "$cross_compiling" = yes ||
520 - $as_executable_p conftest$ac_exeext
521 + test "$cross_compiling" = yes ||
522 + $as_executable_p conftest$ac_exeext
524 boost_cv_lib_system=yes
526 @@ -16542,17 +16763,22 @@ rm -f core conftest.err conftest_ipa8_co
527 LDFLAGS=$boost_save_LDFLAGS
528 LIBS=$boost_save_LIBS
529 if test x"$boost_cv_lib_system" = xyes; then
530 - # Check or used cached result of whether or not using -R or -rpath makes sense.
531 - # Some implementations of ld, such as for Mac OSX, require -rpath but
532 - # -R is the flag known to work on other systems.
533 - # https://github.com/tsuna/boost.m4/issues/19
534 + # Check or used cached result of whether or not using -R or
535 + # -rpath makes sense. Some implementations of ld, such as for
536 + # Mac OSX, require -rpath but -R is the flag known to work on
537 + # other systems. https://github.com/tsuna/boost.m4/issues/19
538 if ${boost_cv_rpath_link_ldflag+:} false; then :
539 $as_echo_n "(cached) " >&6
541 - for boost_cv_rpath_link_ldflag in -Wl,-R, -Wl,-rpath,; do
542 - LDFLAGS="$boost_save_LDFLAGS -L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
543 - LIBS="$boost_save_LIBS $boost_cv_lib_system_LIBS"
544 - rm -f conftest$ac_exeext
545 + case $boost_ldpath in
546 + '') # Nothing to do.
547 + boost_cv_rpath_link_ldflag=
548 + boost_rpath_link_ldflag_found=yes;;
550 + for boost_cv_rpath_link_ldflag in -Wl,-R, -Wl,-rpath,; do
551 + LDFLAGS="$boost_save_LDFLAGS -L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
552 + LIBS="$boost_save_LIBS $boost_cv_lib_system_LIBS"
553 + rm -f conftest$ac_exeext
554 boost_save_ac_ext=$ac_ext
556 # If we already have a .o, re-use it. We change $ac_ext so that $ac_link
557 @@ -16575,14 +16801,14 @@ $as_echo "$ac_try_echo"; } >&5
559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
560 test $ac_status = 0; } && {
561 - test -z "$ac_cxx_werror_flag" ||
562 - test ! -s conftest.err
563 + test -z "$ac_cxx_werror_flag" ||
564 + test ! -s conftest.err
565 } && test -s conftest$ac_exeext && {
566 - test "$cross_compiling" = yes ||
567 - $as_executable_p conftest$ac_exeext
568 + test "$cross_compiling" = yes ||
569 + $as_executable_p conftest$ac_exeext
571 boost_rpath_link_ldflag_found=yes
575 if $boost_use_source; then
576 $as_echo "$as_me: failed program was:" >&5
577 @@ -16595,7 +16821,9 @@ ac_objext=$boost_save_ac_objext
578 ac_ext=$boost_save_ac_ext
579 rm -f core conftest.err conftest_ipa8_conftest.oo \
585 if test "x$boost_rpath_link_ldflag_found" != "xyes"; then :
586 as_fn_error $? "Unable to determine whether to use -R or -rpath" "$LINENO" 5
588 @@ -16604,9 +16832,10 @@ fi
592 - boost_cv_lib_system_LDFLAGS="-L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
593 + test x"$boost_ldpath" != x &&
594 + boost_cv_lib_system_LDFLAGS="-L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
595 boost_cv_lib_system_LDPATH="$boost_ldpath"
599 boost_failed_libs="$boost_failed_libs@$boost_lib@"
601 @@ -16616,13 +16845,14 @@ done
606 rm -f conftest.$ac_objext
609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_system" >&5
610 $as_echo "$boost_cv_lib_system" >&6; }
611 case $boost_cv_lib_system in #(
612 - no) $as_echo "$as_me: failed program was:" >&5
613 + (no) $as_echo "$as_me: failed program was:" >&5
614 sed 's/^/| /' conftest.$ac_ext >&5
616 as_fn_error $? "cannot find the flags to link with Boost system" "$LINENO" 5
617 @@ -16650,11 +16880,11 @@ fi
618 if test "${enable_werror+set}" = set; then :
619 enableval=$enable_werror; enable_werror="$enableval"
626 -if test x"$enable_werror" != "xno"; then :
627 +if test x"$enable_werror" == "xyes"; then :
629 CXXFLAGS="$CXXFLAGS -Werror"
631 @@ -16936,13 +17166,6 @@ fi
633 boost_save_CPPFLAGS=$CPPFLAGS
634 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
635 -# Now let's try to find the library. The algorithm is as follows: first look
636 -# for a given library name according to the user's PREFERRED-RT-OPT. For each
637 -# library name, we prefer to use the ones that carry the tag (toolset name).
638 -# Each library is searched through the various standard paths were Boost is
639 -# usually installed. If we can't find the standard variants, we try to
640 -# enforce -mt (for instance on MacOSX, libboost_threads.dylib doesn't exist
641 -# but there's -obviously- libboost_threads-mt.dylib).
642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Boost iostreams library" >&5
643 $as_echo_n "checking for the Boost iostreams library... " >&6; }
644 if ${boost_cv_lib_iostreams+:} false; then :
645 @@ -16950,19 +17173,19 @@ if ${boost_cv_lib_iostreams+:} false; th
647 boost_cv_lib_iostreams=no
649 - mt | mt-) boost_mt=-mt; boost_rtopt=;; #(
650 - mt* | mt-*) boost_mt=-mt; boost_rtopt=`expr "X" : 'Xmt-*\(.*\)'`;; #(
651 - *) boost_mt=; boost_rtopt=;;
652 + (mt | mt-) boost_mt=-mt; boost_rtopt=;; #(
653 + (mt* | mt-*) boost_mt=-mt; boost_rtopt=`expr "X" : 'Xmt-*\(.*\)'`;; #(
654 + (*) boost_mt=; boost_rtopt=;;
656 if test $enable_static_boost = yes; then
657 boost_rtopt="s$boost_rtopt"
659 # Find the proper debug variant depending on what we've been asked to find.
660 case $boost_rtopt in #(
661 - *d*) boost_rt_d=$boost_rtopt;; #(
662 - *[sgpn]*) # Insert the `d' at the right place (in between `sg' and `pn')
663 + (*d*) boost_rt_d=$boost_rtopt;; #(
664 + (*[sgpn]*) # Insert the `d' at the right place (in between `sg' and `pn')
665 boost_rt_d=`echo "$boost_rtopt" | sed 's/\(s*g*\)\(p*n*\)/\1\2/'`;; #(
666 - *) boost_rt_d='-d';;
667 + (*) boost_rt_d='-d';;
669 # If the PREFERRED-RT-OPT are not empty, prepend a `-'.
670 test -n "$boost_rtopt" && boost_rtopt="-$boost_rtopt"
671 @@ -16993,21 +17216,22 @@ fi
672 rm -f core conftest.err conftest.$ac_objext
673 ac_objext=$boost_save_ac_objext
675 -# Don't bother to ident the 6 nested for loops, only the 2 innermost ones
677 +# Don't bother to ident the following nested for loops, only the 2
678 +# innermost ones matter.
679 +for boost_lib_ in iostreams; do
680 for boost_tag_ in -$boost_cv_lib_tag ''; do
681 for boost_ver_ in -$boost_cv_lib_version ''; do
682 for boost_mt_ in $boost_mt -mt ''; do
683 for boost_rtopt_ in $boost_rtopt '' -d; do
685 - boost_iostreams$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_ \
686 - boost_iostreams$boost_tag_$boost_rtopt_$boost_ver_ \
687 - boost_iostreams$boost_tag_$boost_mt_$boost_ver_ \
688 - boost_iostreams$boost_tag_$boost_ver_
689 + boost_$boost_lib_$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_ \
690 + boost_$boost_lib_$boost_tag_$boost_rtopt_$boost_ver_ \
691 + boost_$boost_lib_$boost_tag_$boost_mt_$boost_ver_ \
692 + boost_$boost_lib_$boost_tag_$boost_ver_
694 # Avoid testing twice the same lib
695 case $boost_failed_libs in #(
696 - *@$boost_lib@*) continue;;
697 + (*@$boost_lib@*) continue;;
699 # If with_boost is empty, we'll search in /lib first, which is not quite
700 # right so instead we'll try to a location based on where the headers are.
701 @@ -17017,14 +17241,17 @@ for boost_rtopt_ in $boost_rtopt '' -d;
702 /opt/local/lib* /usr/local/lib* /opt/lib* /usr/lib* \
703 "$with_boost" C:/Boost/lib /lib*
705 - test -e "$boost_ldpath" || continue
706 + # Don't waste time with directories that don't exist.
707 + if test x"$boost_ldpath" != x && test ! -e "$boost_ldpath"; then
710 boost_save_LDFLAGS=$LDFLAGS
711 # Are we looking for a static library?
712 case $boost_ldpath:$boost_rtopt_ in #(
713 - *?*:*s*) # Yes (Non empty boost_ldpath + s in rt opt)
714 + (*?*:*s*) # Yes (Non empty boost_ldpath + s in rt opt)
715 boost_cv_lib_iostreams_LIBS="$boost_ldpath/lib$boost_lib.$libext"
716 test -e "$boost_cv_lib_iostreams_LIBS" || continue;; #(
717 - *) # No: use -lboost_foo to find the shared library.
718 + (*) # No: use -lboost_foo to find the shared library.
719 boost_cv_lib_iostreams_LIBS="-l$boost_lib";;
721 boost_save_LIBS=$LIBS
722 @@ -17053,11 +17280,11 @@ $as_echo "$ac_try_echo"; } >&5
724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
725 test $ac_status = 0; } && {
726 - test -z "$ac_cxx_werror_flag" ||
727 - test ! -s conftest.err
728 + test -z "$ac_cxx_werror_flag" ||
729 + test ! -s conftest.err
730 } && test -s conftest$ac_exeext && {
731 - test "$cross_compiling" = yes ||
732 - $as_executable_p conftest$ac_exeext
733 + test "$cross_compiling" = yes ||
734 + $as_executable_p conftest$ac_exeext
736 boost_cv_lib_iostreams=yes
738 @@ -17076,17 +17303,22 @@ rm -f core conftest.err conftest_ipa8_co
739 LDFLAGS=$boost_save_LDFLAGS
740 LIBS=$boost_save_LIBS
741 if test x"$boost_cv_lib_iostreams" = xyes; then
742 - # Check or used cached result of whether or not using -R or -rpath makes sense.
743 - # Some implementations of ld, such as for Mac OSX, require -rpath but
744 - # -R is the flag known to work on other systems.
745 - # https://github.com/tsuna/boost.m4/issues/19
746 + # Check or used cached result of whether or not using -R or
747 + # -rpath makes sense. Some implementations of ld, such as for
748 + # Mac OSX, require -rpath but -R is the flag known to work on
749 + # other systems. https://github.com/tsuna/boost.m4/issues/19
750 if ${boost_cv_rpath_link_ldflag+:} false; then :
751 $as_echo_n "(cached) " >&6
753 - for boost_cv_rpath_link_ldflag in -Wl,-R, -Wl,-rpath,; do
754 - LDFLAGS="$boost_save_LDFLAGS -L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
755 - LIBS="$boost_save_LIBS $boost_cv_lib_iostreams_LIBS"
756 - rm -f conftest$ac_exeext
757 + case $boost_ldpath in
758 + '') # Nothing to do.
759 + boost_cv_rpath_link_ldflag=
760 + boost_rpath_link_ldflag_found=yes;;
762 + for boost_cv_rpath_link_ldflag in -Wl,-R, -Wl,-rpath,; do
763 + LDFLAGS="$boost_save_LDFLAGS -L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
764 + LIBS="$boost_save_LIBS $boost_cv_lib_iostreams_LIBS"
765 + rm -f conftest$ac_exeext
766 boost_save_ac_ext=$ac_ext
768 # If we already have a .o, re-use it. We change $ac_ext so that $ac_link
769 @@ -17109,14 +17341,14 @@ $as_echo "$ac_try_echo"; } >&5
771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
772 test $ac_status = 0; } && {
773 - test -z "$ac_cxx_werror_flag" ||
774 - test ! -s conftest.err
775 + test -z "$ac_cxx_werror_flag" ||
776 + test ! -s conftest.err
777 } && test -s conftest$ac_exeext && {
778 - test "$cross_compiling" = yes ||
779 - $as_executable_p conftest$ac_exeext
780 + test "$cross_compiling" = yes ||
781 + $as_executable_p conftest$ac_exeext
783 boost_rpath_link_ldflag_found=yes
787 if $boost_use_source; then
788 $as_echo "$as_me: failed program was:" >&5
789 @@ -17129,7 +17361,9 @@ ac_objext=$boost_save_ac_objext
790 ac_ext=$boost_save_ac_ext
791 rm -f core conftest.err conftest_ipa8_conftest.oo \
797 if test "x$boost_rpath_link_ldflag_found" != "xyes"; then :
798 as_fn_error $? "Unable to determine whether to use -R or -rpath" "$LINENO" 5
800 @@ -17138,9 +17372,10 @@ fi
804 - boost_cv_lib_iostreams_LDFLAGS="-L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
805 + test x"$boost_ldpath" != x &&
806 + boost_cv_lib_iostreams_LDFLAGS="-L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
807 boost_cv_lib_iostreams_LDPATH="$boost_ldpath"
811 boost_failed_libs="$boost_failed_libs@$boost_lib@"
813 @@ -17150,13 +17385,14 @@ done
818 rm -f conftest.$ac_objext
821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_iostreams" >&5
822 $as_echo "$boost_cv_lib_iostreams" >&6; }
823 case $boost_cv_lib_iostreams in #(
824 - no) $as_echo "$as_me: failed program was:" >&5
825 + (no) $as_echo "$as_me: failed program was:" >&5
826 sed 's/^/| /' conftest.$ac_ext >&5
828 as_fn_error $? "cannot find the flags to link with Boost iostreams" "$LINENO" 5
829 @@ -17221,13 +17457,6 @@ fi
831 boost_save_CPPFLAGS=$CPPFLAGS
832 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
833 -# Now let's try to find the library. The algorithm is as follows: first look
834 -# for a given library name according to the user's PREFERRED-RT-OPT. For each
835 -# library name, we prefer to use the ones that carry the tag (toolset name).
836 -# Each library is searched through the various standard paths were Boost is
837 -# usually installed. If we can't find the standard variants, we try to
838 -# enforce -mt (for instance on MacOSX, libboost_threads.dylib doesn't exist
839 -# but there's -obviously- libboost_threads-mt.dylib).
840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Boost program_options library" >&5
841 $as_echo_n "checking for the Boost program_options library... " >&6; }
842 if ${boost_cv_lib_program_options+:} false; then :
843 @@ -17235,19 +17464,19 @@ if ${boost_cv_lib_program_options+:} fal
845 boost_cv_lib_program_options=no
847 - mt | mt-) boost_mt=-mt; boost_rtopt=;; #(
848 - mt* | mt-*) boost_mt=-mt; boost_rtopt=`expr "X" : 'Xmt-*\(.*\)'`;; #(
849 - *) boost_mt=; boost_rtopt=;;
850 + (mt | mt-) boost_mt=-mt; boost_rtopt=;; #(
851 + (mt* | mt-*) boost_mt=-mt; boost_rtopt=`expr "X" : 'Xmt-*\(.*\)'`;; #(
852 + (*) boost_mt=; boost_rtopt=;;
854 if test $enable_static_boost = yes; then
855 boost_rtopt="s$boost_rtopt"
857 # Find the proper debug variant depending on what we've been asked to find.
858 case $boost_rtopt in #(
859 - *d*) boost_rt_d=$boost_rtopt;; #(
860 - *[sgpn]*) # Insert the `d' at the right place (in between `sg' and `pn')
861 + (*d*) boost_rt_d=$boost_rtopt;; #(
862 + (*[sgpn]*) # Insert the `d' at the right place (in between `sg' and `pn')
863 boost_rt_d=`echo "$boost_rtopt" | sed 's/\(s*g*\)\(p*n*\)/\1\2/'`;; #(
864 - *) boost_rt_d='-d';;
865 + (*) boost_rt_d='-d';;
867 # If the PREFERRED-RT-OPT are not empty, prepend a `-'.
868 test -n "$boost_rtopt" && boost_rtopt="-$boost_rtopt"
869 @@ -17278,21 +17507,22 @@ fi
870 rm -f core conftest.err conftest.$ac_objext
871 ac_objext=$boost_save_ac_objext
873 -# Don't bother to ident the 6 nested for loops, only the 2 innermost ones
875 +# Don't bother to ident the following nested for loops, only the 2
876 +# innermost ones matter.
877 +for boost_lib_ in program_options; do
878 for boost_tag_ in -$boost_cv_lib_tag ''; do
879 for boost_ver_ in -$boost_cv_lib_version ''; do
880 for boost_mt_ in $boost_mt -mt ''; do
881 for boost_rtopt_ in $boost_rtopt '' -d; do
883 - boost_program_options$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_ \
884 - boost_program_options$boost_tag_$boost_rtopt_$boost_ver_ \
885 - boost_program_options$boost_tag_$boost_mt_$boost_ver_ \
886 - boost_program_options$boost_tag_$boost_ver_
887 + boost_$boost_lib_$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_ \
888 + boost_$boost_lib_$boost_tag_$boost_rtopt_$boost_ver_ \
889 + boost_$boost_lib_$boost_tag_$boost_mt_$boost_ver_ \
890 + boost_$boost_lib_$boost_tag_$boost_ver_
892 # Avoid testing twice the same lib
893 case $boost_failed_libs in #(
894 - *@$boost_lib@*) continue;;
895 + (*@$boost_lib@*) continue;;
897 # If with_boost is empty, we'll search in /lib first, which is not quite
898 # right so instead we'll try to a location based on where the headers are.
899 @@ -17302,14 +17532,17 @@ for boost_rtopt_ in $boost_rtopt '' -d;
900 /opt/local/lib* /usr/local/lib* /opt/lib* /usr/lib* \
901 "$with_boost" C:/Boost/lib /lib*
903 - test -e "$boost_ldpath" || continue
904 + # Don't waste time with directories that don't exist.
905 + if test x"$boost_ldpath" != x && test ! -e "$boost_ldpath"; then
908 boost_save_LDFLAGS=$LDFLAGS
909 # Are we looking for a static library?
910 case $boost_ldpath:$boost_rtopt_ in #(
911 - *?*:*s*) # Yes (Non empty boost_ldpath + s in rt opt)
912 + (*?*:*s*) # Yes (Non empty boost_ldpath + s in rt opt)
913 boost_cv_lib_program_options_LIBS="$boost_ldpath/lib$boost_lib.$libext"
914 test -e "$boost_cv_lib_program_options_LIBS" || continue;; #(
915 - *) # No: use -lboost_foo to find the shared library.
916 + (*) # No: use -lboost_foo to find the shared library.
917 boost_cv_lib_program_options_LIBS="-l$boost_lib";;
919 boost_save_LIBS=$LIBS
920 @@ -17338,11 +17571,11 @@ $as_echo "$ac_try_echo"; } >&5
922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
923 test $ac_status = 0; } && {
924 - test -z "$ac_cxx_werror_flag" ||
925 - test ! -s conftest.err
926 + test -z "$ac_cxx_werror_flag" ||
927 + test ! -s conftest.err
928 } && test -s conftest$ac_exeext && {
929 - test "$cross_compiling" = yes ||
930 - $as_executable_p conftest$ac_exeext
931 + test "$cross_compiling" = yes ||
932 + $as_executable_p conftest$ac_exeext
934 boost_cv_lib_program_options=yes
936 @@ -17361,17 +17594,22 @@ rm -f core conftest.err conftest_ipa8_co
937 LDFLAGS=$boost_save_LDFLAGS
938 LIBS=$boost_save_LIBS
939 if test x"$boost_cv_lib_program_options" = xyes; then
940 - # Check or used cached result of whether or not using -R or -rpath makes sense.
941 - # Some implementations of ld, such as for Mac OSX, require -rpath but
942 - # -R is the flag known to work on other systems.
943 - # https://github.com/tsuna/boost.m4/issues/19
944 + # Check or used cached result of whether or not using -R or
945 + # -rpath makes sense. Some implementations of ld, such as for
946 + # Mac OSX, require -rpath but -R is the flag known to work on
947 + # other systems. https://github.com/tsuna/boost.m4/issues/19
948 if ${boost_cv_rpath_link_ldflag+:} false; then :
949 $as_echo_n "(cached) " >&6
951 - for boost_cv_rpath_link_ldflag in -Wl,-R, -Wl,-rpath,; do
952 - LDFLAGS="$boost_save_LDFLAGS -L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
953 - LIBS="$boost_save_LIBS $boost_cv_lib_program_options_LIBS"
954 - rm -f conftest$ac_exeext
955 + case $boost_ldpath in
956 + '') # Nothing to do.
957 + boost_cv_rpath_link_ldflag=
958 + boost_rpath_link_ldflag_found=yes;;
960 + for boost_cv_rpath_link_ldflag in -Wl,-R, -Wl,-rpath,; do
961 + LDFLAGS="$boost_save_LDFLAGS -L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
962 + LIBS="$boost_save_LIBS $boost_cv_lib_program_options_LIBS"
963 + rm -f conftest$ac_exeext
964 boost_save_ac_ext=$ac_ext
966 # If we already have a .o, re-use it. We change $ac_ext so that $ac_link
967 @@ -17394,14 +17632,14 @@ $as_echo "$ac_try_echo"; } >&5
969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
970 test $ac_status = 0; } && {
971 - test -z "$ac_cxx_werror_flag" ||
972 - test ! -s conftest.err
973 + test -z "$ac_cxx_werror_flag" ||
974 + test ! -s conftest.err
975 } && test -s conftest$ac_exeext && {
976 - test "$cross_compiling" = yes ||
977 - $as_executable_p conftest$ac_exeext
978 + test "$cross_compiling" = yes ||
979 + $as_executable_p conftest$ac_exeext
981 boost_rpath_link_ldflag_found=yes
985 if $boost_use_source; then
986 $as_echo "$as_me: failed program was:" >&5
987 @@ -17414,7 +17652,9 @@ ac_objext=$boost_save_ac_objext
988 ac_ext=$boost_save_ac_ext
989 rm -f core conftest.err conftest_ipa8_conftest.oo \
995 if test "x$boost_rpath_link_ldflag_found" != "xyes"; then :
996 as_fn_error $? "Unable to determine whether to use -R or -rpath" "$LINENO" 5
998 @@ -17423,9 +17663,10 @@ fi
1002 - boost_cv_lib_program_options_LDFLAGS="-L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
1003 + test x"$boost_ldpath" != x &&
1004 + boost_cv_lib_program_options_LDFLAGS="-L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
1005 boost_cv_lib_program_options_LDPATH="$boost_ldpath"
1009 boost_failed_libs="$boost_failed_libs@$boost_lib@"
1011 @@ -17435,13 +17676,14 @@ done
1016 rm -f conftest.$ac_objext
1019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_program_options" >&5
1020 $as_echo "$boost_cv_lib_program_options" >&6; }
1021 case $boost_cv_lib_program_options in #(
1022 - no) $as_echo "$as_me: failed program was:" >&5
1023 + (no) $as_echo "$as_me: failed program was:" >&5
1024 sed 's/^/| /' conftest.$ac_ext >&5
1026 as_fn_error $? "cannot find the flags to link with Boost program_options" "$LINENO" 5
1027 @@ -17465,7 +17707,7 @@ fi
1028 # added as of 1.35.0. If we have a version <1.35, we must not attempt to
1029 # find Boost.System as it didn't exist by then.
1030 if test $boost_major_version -ge 135; then
1031 -if test x"$boost_cv_inc_path" = xno; then
1032 + if test x"$boost_cv_inc_path" = xno; then
1033 { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for the Boost system library" >&5
1034 $as_echo "$as_me: Boost not available, not searching for the Boost system library" >&6;}
1036 @@ -17505,13 +17747,6 @@ fi
1038 boost_save_CPPFLAGS=$CPPFLAGS
1039 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
1040 -# Now let's try to find the library. The algorithm is as follows: first look
1041 -# for a given library name according to the user's PREFERRED-RT-OPT. For each
1042 -# library name, we prefer to use the ones that carry the tag (toolset name).
1043 -# Each library is searched through the various standard paths were Boost is
1044 -# usually installed. If we can't find the standard variants, we try to
1045 -# enforce -mt (for instance on MacOSX, libboost_threads.dylib doesn't exist
1046 -# but there's -obviously- libboost_threads-mt.dylib).
1047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Boost system library" >&5
1048 $as_echo_n "checking for the Boost system library... " >&6; }
1049 if ${boost_cv_lib_system+:} false; then :
1050 @@ -17519,19 +17754,19 @@ if ${boost_cv_lib_system+:} false; then
1052 boost_cv_lib_system=no
1054 - mt | mt-) boost_mt=-mt; boost_rtopt=;; #(
1055 - mt* | mt-*) boost_mt=-mt; boost_rtopt=`expr "X" : 'Xmt-*\(.*\)'`;; #(
1056 - *) boost_mt=; boost_rtopt=;;
1057 + (mt | mt-) boost_mt=-mt; boost_rtopt=;; #(
1058 + (mt* | mt-*) boost_mt=-mt; boost_rtopt=`expr "X" : 'Xmt-*\(.*\)'`;; #(
1059 + (*) boost_mt=; boost_rtopt=;;
1061 if test $enable_static_boost = yes; then
1062 boost_rtopt="s$boost_rtopt"
1064 # Find the proper debug variant depending on what we've been asked to find.
1065 case $boost_rtopt in #(
1066 - *d*) boost_rt_d=$boost_rtopt;; #(
1067 - *[sgpn]*) # Insert the `d' at the right place (in between `sg' and `pn')
1068 + (*d*) boost_rt_d=$boost_rtopt;; #(
1069 + (*[sgpn]*) # Insert the `d' at the right place (in between `sg' and `pn')
1070 boost_rt_d=`echo "$boost_rtopt" | sed 's/\(s*g*\)\(p*n*\)/\1\2/'`;; #(
1071 - *) boost_rt_d='-d';;
1072 + (*) boost_rt_d='-d';;
1074 # If the PREFERRED-RT-OPT are not empty, prepend a `-'.
1075 test -n "$boost_rtopt" && boost_rtopt="-$boost_rtopt"
1076 @@ -17562,21 +17797,22 @@ fi
1077 rm -f core conftest.err conftest.$ac_objext
1078 ac_objext=$boost_save_ac_objext
1080 -# Don't bother to ident the 6 nested for loops, only the 2 innermost ones
1082 +# Don't bother to ident the following nested for loops, only the 2
1083 +# innermost ones matter.
1084 +for boost_lib_ in system; do
1085 for boost_tag_ in -$boost_cv_lib_tag ''; do
1086 for boost_ver_ in -$boost_cv_lib_version ''; do
1087 for boost_mt_ in $boost_mt -mt ''; do
1088 for boost_rtopt_ in $boost_rtopt '' -d; do
1090 - boost_system$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_ \
1091 - boost_system$boost_tag_$boost_rtopt_$boost_ver_ \
1092 - boost_system$boost_tag_$boost_mt_$boost_ver_ \
1093 - boost_system$boost_tag_$boost_ver_
1094 + boost_$boost_lib_$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_ \
1095 + boost_$boost_lib_$boost_tag_$boost_rtopt_$boost_ver_ \
1096 + boost_$boost_lib_$boost_tag_$boost_mt_$boost_ver_ \
1097 + boost_$boost_lib_$boost_tag_$boost_ver_
1099 # Avoid testing twice the same lib
1100 case $boost_failed_libs in #(
1101 - *@$boost_lib@*) continue;;
1102 + (*@$boost_lib@*) continue;;
1104 # If with_boost is empty, we'll search in /lib first, which is not quite
1105 # right so instead we'll try to a location based on where the headers are.
1106 @@ -17586,14 +17822,17 @@ for boost_rtopt_ in $boost_rtopt '' -d;
1107 /opt/local/lib* /usr/local/lib* /opt/lib* /usr/lib* \
1108 "$with_boost" C:/Boost/lib /lib*
1110 - test -e "$boost_ldpath" || continue
1111 + # Don't waste time with directories that don't exist.
1112 + if test x"$boost_ldpath" != x && test ! -e "$boost_ldpath"; then
1115 boost_save_LDFLAGS=$LDFLAGS
1116 # Are we looking for a static library?
1117 case $boost_ldpath:$boost_rtopt_ in #(
1118 - *?*:*s*) # Yes (Non empty boost_ldpath + s in rt opt)
1119 + (*?*:*s*) # Yes (Non empty boost_ldpath + s in rt opt)
1120 boost_cv_lib_system_LIBS="$boost_ldpath/lib$boost_lib.$libext"
1121 test -e "$boost_cv_lib_system_LIBS" || continue;; #(
1122 - *) # No: use -lboost_foo to find the shared library.
1123 + (*) # No: use -lboost_foo to find the shared library.
1124 boost_cv_lib_system_LIBS="-l$boost_lib";;
1126 boost_save_LIBS=$LIBS
1127 @@ -17622,11 +17861,11 @@ $as_echo "$ac_try_echo"; } >&5
1129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1130 test $ac_status = 0; } && {
1131 - test -z "$ac_cxx_werror_flag" ||
1132 - test ! -s conftest.err
1133 + test -z "$ac_cxx_werror_flag" ||
1134 + test ! -s conftest.err
1135 } && test -s conftest$ac_exeext && {
1136 - test "$cross_compiling" = yes ||
1137 - $as_executable_p conftest$ac_exeext
1138 + test "$cross_compiling" = yes ||
1139 + $as_executable_p conftest$ac_exeext
1141 boost_cv_lib_system=yes
1143 @@ -17645,17 +17884,22 @@ rm -f core conftest.err conftest_ipa8_co
1144 LDFLAGS=$boost_save_LDFLAGS
1145 LIBS=$boost_save_LIBS
1146 if test x"$boost_cv_lib_system" = xyes; then
1147 - # Check or used cached result of whether or not using -R or -rpath makes sense.
1148 - # Some implementations of ld, such as for Mac OSX, require -rpath but
1149 - # -R is the flag known to work on other systems.
1150 - # https://github.com/tsuna/boost.m4/issues/19
1151 + # Check or used cached result of whether or not using -R or
1152 + # -rpath makes sense. Some implementations of ld, such as for
1153 + # Mac OSX, require -rpath but -R is the flag known to work on
1154 + # other systems. https://github.com/tsuna/boost.m4/issues/19
1155 if ${boost_cv_rpath_link_ldflag+:} false; then :
1156 $as_echo_n "(cached) " >&6
1158 - for boost_cv_rpath_link_ldflag in -Wl,-R, -Wl,-rpath,; do
1159 - LDFLAGS="$boost_save_LDFLAGS -L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
1160 - LIBS="$boost_save_LIBS $boost_cv_lib_system_LIBS"
1161 - rm -f conftest$ac_exeext
1162 + case $boost_ldpath in
1163 + '') # Nothing to do.
1164 + boost_cv_rpath_link_ldflag=
1165 + boost_rpath_link_ldflag_found=yes;;
1167 + for boost_cv_rpath_link_ldflag in -Wl,-R, -Wl,-rpath,; do
1168 + LDFLAGS="$boost_save_LDFLAGS -L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
1169 + LIBS="$boost_save_LIBS $boost_cv_lib_system_LIBS"
1170 + rm -f conftest$ac_exeext
1171 boost_save_ac_ext=$ac_ext
1173 # If we already have a .o, re-use it. We change $ac_ext so that $ac_link
1174 @@ -17678,14 +17922,14 @@ $as_echo "$ac_try_echo"; } >&5
1176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1177 test $ac_status = 0; } && {
1178 - test -z "$ac_cxx_werror_flag" ||
1179 - test ! -s conftest.err
1180 + test -z "$ac_cxx_werror_flag" ||
1181 + test ! -s conftest.err
1182 } && test -s conftest$ac_exeext && {
1183 - test "$cross_compiling" = yes ||
1184 - $as_executable_p conftest$ac_exeext
1185 + test "$cross_compiling" = yes ||
1186 + $as_executable_p conftest$ac_exeext
1188 boost_rpath_link_ldflag_found=yes
1192 if $boost_use_source; then
1193 $as_echo "$as_me: failed program was:" >&5
1194 @@ -17698,7 +17942,9 @@ ac_objext=$boost_save_ac_objext
1195 ac_ext=$boost_save_ac_ext
1196 rm -f core conftest.err conftest_ipa8_conftest.oo \
1202 if test "x$boost_rpath_link_ldflag_found" != "xyes"; then :
1203 as_fn_error $? "Unable to determine whether to use -R or -rpath" "$LINENO" 5
1205 @@ -17707,9 +17953,10 @@ fi
1209 - boost_cv_lib_system_LDFLAGS="-L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
1210 + test x"$boost_ldpath" != x &&
1211 + boost_cv_lib_system_LDFLAGS="-L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
1212 boost_cv_lib_system_LDPATH="$boost_ldpath"
1216 boost_failed_libs="$boost_failed_libs@$boost_lib@"
1218 @@ -17719,13 +17966,14 @@ done
1223 rm -f conftest.$ac_objext
1226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_system" >&5
1227 $as_echo "$boost_cv_lib_system" >&6; }
1228 case $boost_cv_lib_system in #(
1229 - no) $as_echo "$as_me: failed program was:" >&5
1230 + (no) $as_echo "$as_me: failed program was:" >&5
1231 sed 's/^/| /' conftest.$ac_ext >&5
1233 as_fn_error $? "cannot find the flags to link with Boost system" "$LINENO" 5
1234 @@ -17790,13 +18038,6 @@ fi
1236 boost_save_CPPFLAGS=$CPPFLAGS
1237 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
1238 -# Now let's try to find the library. The algorithm is as follows: first look
1239 -# for a given library name according to the user's PREFERRED-RT-OPT. For each
1240 -# library name, we prefer to use the ones that carry the tag (toolset name).
1241 -# Each library is searched through the various standard paths were Boost is
1242 -# usually installed. If we can't find the standard variants, we try to
1243 -# enforce -mt (for instance on MacOSX, libboost_threads.dylib doesn't exist
1244 -# but there's -obviously- libboost_threads-mt.dylib).
1245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Boost filesystem library" >&5
1246 $as_echo_n "checking for the Boost filesystem library... " >&6; }
1247 if ${boost_cv_lib_filesystem+:} false; then :
1248 @@ -17804,19 +18045,19 @@ if ${boost_cv_lib_filesystem+:} false; t
1250 boost_cv_lib_filesystem=no
1252 - mt | mt-) boost_mt=-mt; boost_rtopt=;; #(
1253 - mt* | mt-*) boost_mt=-mt; boost_rtopt=`expr "X" : 'Xmt-*\(.*\)'`;; #(
1254 - *) boost_mt=; boost_rtopt=;;
1255 + (mt | mt-) boost_mt=-mt; boost_rtopt=;; #(
1256 + (mt* | mt-*) boost_mt=-mt; boost_rtopt=`expr "X" : 'Xmt-*\(.*\)'`;; #(
1257 + (*) boost_mt=; boost_rtopt=;;
1259 if test $enable_static_boost = yes; then
1260 boost_rtopt="s$boost_rtopt"
1262 # Find the proper debug variant depending on what we've been asked to find.
1263 case $boost_rtopt in #(
1264 - *d*) boost_rt_d=$boost_rtopt;; #(
1265 - *[sgpn]*) # Insert the `d' at the right place (in between `sg' and `pn')
1266 + (*d*) boost_rt_d=$boost_rtopt;; #(
1267 + (*[sgpn]*) # Insert the `d' at the right place (in between `sg' and `pn')
1268 boost_rt_d=`echo "$boost_rtopt" | sed 's/\(s*g*\)\(p*n*\)/\1\2/'`;; #(
1269 - *) boost_rt_d='-d';;
1270 + (*) boost_rt_d='-d';;
1272 # If the PREFERRED-RT-OPT are not empty, prepend a `-'.
1273 test -n "$boost_rtopt" && boost_rtopt="-$boost_rtopt"
1274 @@ -17847,21 +18088,22 @@ fi
1275 rm -f core conftest.err conftest.$ac_objext
1276 ac_objext=$boost_save_ac_objext
1278 -# Don't bother to ident the 6 nested for loops, only the 2 innermost ones
1280 +# Don't bother to ident the following nested for loops, only the 2
1281 +# innermost ones matter.
1282 +for boost_lib_ in filesystem; do
1283 for boost_tag_ in -$boost_cv_lib_tag ''; do
1284 for boost_ver_ in -$boost_cv_lib_version ''; do
1285 for boost_mt_ in $boost_mt -mt ''; do
1286 for boost_rtopt_ in $boost_rtopt '' -d; do
1288 - boost_filesystem$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_ \
1289 - boost_filesystem$boost_tag_$boost_rtopt_$boost_ver_ \
1290 - boost_filesystem$boost_tag_$boost_mt_$boost_ver_ \
1291 - boost_filesystem$boost_tag_$boost_ver_
1292 + boost_$boost_lib_$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_ \
1293 + boost_$boost_lib_$boost_tag_$boost_rtopt_$boost_ver_ \
1294 + boost_$boost_lib_$boost_tag_$boost_mt_$boost_ver_ \
1295 + boost_$boost_lib_$boost_tag_$boost_ver_
1297 # Avoid testing twice the same lib
1298 case $boost_failed_libs in #(
1299 - *@$boost_lib@*) continue;;
1300 + (*@$boost_lib@*) continue;;
1302 # If with_boost is empty, we'll search in /lib first, which is not quite
1303 # right so instead we'll try to a location based on where the headers are.
1304 @@ -17871,14 +18113,17 @@ for boost_rtopt_ in $boost_rtopt '' -d;
1305 /opt/local/lib* /usr/local/lib* /opt/lib* /usr/lib* \
1306 "$with_boost" C:/Boost/lib /lib*
1308 - test -e "$boost_ldpath" || continue
1309 + # Don't waste time with directories that don't exist.
1310 + if test x"$boost_ldpath" != x && test ! -e "$boost_ldpath"; then
1313 boost_save_LDFLAGS=$LDFLAGS
1314 # Are we looking for a static library?
1315 case $boost_ldpath:$boost_rtopt_ in #(
1316 - *?*:*s*) # Yes (Non empty boost_ldpath + s in rt opt)
1317 + (*?*:*s*) # Yes (Non empty boost_ldpath + s in rt opt)
1318 boost_cv_lib_filesystem_LIBS="$boost_ldpath/lib$boost_lib.$libext"
1319 test -e "$boost_cv_lib_filesystem_LIBS" || continue;; #(
1320 - *) # No: use -lboost_foo to find the shared library.
1321 + (*) # No: use -lboost_foo to find the shared library.
1322 boost_cv_lib_filesystem_LIBS="-l$boost_lib";;
1324 boost_save_LIBS=$LIBS
1325 @@ -17907,11 +18152,11 @@ $as_echo "$ac_try_echo"; } >&5
1327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1328 test $ac_status = 0; } && {
1329 - test -z "$ac_cxx_werror_flag" ||
1330 - test ! -s conftest.err
1331 + test -z "$ac_cxx_werror_flag" ||
1332 + test ! -s conftest.err
1333 } && test -s conftest$ac_exeext && {
1334 - test "$cross_compiling" = yes ||
1335 - $as_executable_p conftest$ac_exeext
1336 + test "$cross_compiling" = yes ||
1337 + $as_executable_p conftest$ac_exeext
1339 boost_cv_lib_filesystem=yes
1341 @@ -17930,17 +18175,22 @@ rm -f core conftest.err conftest_ipa8_co
1342 LDFLAGS=$boost_save_LDFLAGS
1343 LIBS=$boost_save_LIBS
1344 if test x"$boost_cv_lib_filesystem" = xyes; then
1345 - # Check or used cached result of whether or not using -R or -rpath makes sense.
1346 - # Some implementations of ld, such as for Mac OSX, require -rpath but
1347 - # -R is the flag known to work on other systems.
1348 - # https://github.com/tsuna/boost.m4/issues/19
1349 + # Check or used cached result of whether or not using -R or
1350 + # -rpath makes sense. Some implementations of ld, such as for
1351 + # Mac OSX, require -rpath but -R is the flag known to work on
1352 + # other systems. https://github.com/tsuna/boost.m4/issues/19
1353 if ${boost_cv_rpath_link_ldflag+:} false; then :
1354 $as_echo_n "(cached) " >&6
1356 - for boost_cv_rpath_link_ldflag in -Wl,-R, -Wl,-rpath,; do
1357 - LDFLAGS="$boost_save_LDFLAGS -L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
1358 - LIBS="$boost_save_LIBS $boost_cv_lib_filesystem_LIBS"
1359 - rm -f conftest$ac_exeext
1360 + case $boost_ldpath in
1361 + '') # Nothing to do.
1362 + boost_cv_rpath_link_ldflag=
1363 + boost_rpath_link_ldflag_found=yes;;
1365 + for boost_cv_rpath_link_ldflag in -Wl,-R, -Wl,-rpath,; do
1366 + LDFLAGS="$boost_save_LDFLAGS -L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
1367 + LIBS="$boost_save_LIBS $boost_cv_lib_filesystem_LIBS"
1368 + rm -f conftest$ac_exeext
1369 boost_save_ac_ext=$ac_ext
1371 # If we already have a .o, re-use it. We change $ac_ext so that $ac_link
1372 @@ -17963,14 +18213,14 @@ $as_echo "$ac_try_echo"; } >&5
1374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1375 test $ac_status = 0; } && {
1376 - test -z "$ac_cxx_werror_flag" ||
1377 - test ! -s conftest.err
1378 + test -z "$ac_cxx_werror_flag" ||
1379 + test ! -s conftest.err
1380 } && test -s conftest$ac_exeext && {
1381 - test "$cross_compiling" = yes ||
1382 - $as_executable_p conftest$ac_exeext
1383 + test "$cross_compiling" = yes ||
1384 + $as_executable_p conftest$ac_exeext
1386 boost_rpath_link_ldflag_found=yes
1390 if $boost_use_source; then
1391 $as_echo "$as_me: failed program was:" >&5
1392 @@ -17983,7 +18233,9 @@ ac_objext=$boost_save_ac_objext
1393 ac_ext=$boost_save_ac_ext
1394 rm -f core conftest.err conftest_ipa8_conftest.oo \
1400 if test "x$boost_rpath_link_ldflag_found" != "xyes"; then :
1401 as_fn_error $? "Unable to determine whether to use -R or -rpath" "$LINENO" 5
1403 @@ -17992,9 +18244,10 @@ fi
1407 - boost_cv_lib_filesystem_LDFLAGS="-L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
1408 + test x"$boost_ldpath" != x &&
1409 + boost_cv_lib_filesystem_LDFLAGS="-L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
1410 boost_cv_lib_filesystem_LDPATH="$boost_ldpath"
1414 boost_failed_libs="$boost_failed_libs@$boost_lib@"
1416 @@ -18004,13 +18257,14 @@ done
1421 rm -f conftest.$ac_objext
1424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_filesystem" >&5
1425 $as_echo "$boost_cv_lib_filesystem" >&6; }
1426 case $boost_cv_lib_filesystem in #(
1427 - no) $as_echo "$as_me: failed program was:" >&5
1428 + (no) $as_echo "$as_me: failed program was:" >&5
1429 sed 's/^/| /' conftest.$ac_ext >&5
1431 as_fn_error $? "cannot find the flags to link with Boost filesystem" "$LINENO" 5
1432 @@ -18029,13 +18283,298 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1435 if test $enable_static_boost = yes && test $boost_major_version -ge 135; then
1436 - BOOST_FILESYSTEM_LIBS="$BOOST_FILESYSTEM_LIBS $BOOST_SYSTEM_LIBS"
1438 + BOOST_FILESYSTEM_LIBS="$BOOST_FILESYSTEM_LIBS $BOOST_SYSTEM_LIBS"
1440 LIBS=$boost_filesystem_save_LIBS
1441 LDFLAGS=$boost_filesystem_save_LDFLAGS
1444 + if test x"$boost_cv_inc_path" = xno; then
1445 + { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for the Boost system library" >&5
1446 +$as_echo "$as_me: Boost not available, not searching for the Boost system library" >&6;}
1449 +ac_cpp='$CXXCPP $CPPFLAGS'
1450 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1451 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1452 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1453 +if test x"$boost_cv_inc_path" = xno; then
1454 + { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/system/error_code.hpp" >&5
1455 +$as_echo "$as_me: Boost not available, not searching for boost/system/error_code.hpp" >&6;}
1458 +ac_cpp='$CXXCPP $CPPFLAGS'
1459 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1460 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1461 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1462 +boost_save_CPPFLAGS=$CPPFLAGS
1463 +CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
1464 +ac_fn_cxx_check_header_mongrel "$LINENO" "boost/system/error_code.hpp" "ac_cv_header_boost_system_error_code_hpp" "$ac_includes_default"
1465 +if test "x$ac_cv_header_boost_system_error_code_hpp" = xyes; then :
1467 +$as_echo "#define HAVE_BOOST_SYSTEM_ERROR_CODE_HPP 1" >>confdefs.h
1470 + as_fn_error $? "cannot find boost/system/error_code.hpp" "$LINENO" 5
1474 +CPPFLAGS=$boost_save_CPPFLAGS
1476 +ac_cpp='$CXXCPP $CPPFLAGS'
1477 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1478 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1479 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1482 +boost_save_CPPFLAGS=$CPPFLAGS
1483 +CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
1484 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Boost system library" >&5
1485 +$as_echo_n "checking for the Boost system library... " >&6; }
1486 +if ${boost_cv_lib_system+:} false; then :
1487 + $as_echo_n "(cached) " >&6
1489 + boost_cv_lib_system=no
1491 + (mt | mt-) boost_mt=-mt; boost_rtopt=;; #(
1492 + (mt* | mt-*) boost_mt=-mt; boost_rtopt=`expr "X" : 'Xmt-*\(.*\)'`;; #(
1493 + (*) boost_mt=; boost_rtopt=;;
1495 + if test $enable_static_boost = yes; then
1496 + boost_rtopt="s$boost_rtopt"
1498 + # Find the proper debug variant depending on what we've been asked to find.
1499 + case $boost_rtopt in #(
1500 + (*d*) boost_rt_d=$boost_rtopt;; #(
1501 + (*[sgpn]*) # Insert the `d' at the right place (in between `sg' and `pn')
1502 + boost_rt_d=`echo "$boost_rtopt" | sed 's/\(s*g*\)\(p*n*\)/\1\2/'`;; #(
1503 + (*) boost_rt_d='-d';;
1505 + # If the PREFERRED-RT-OPT are not empty, prepend a `-'.
1506 + test -n "$boost_rtopt" && boost_rtopt="-$boost_rtopt"
1507 + $boost_guess_use_mt && boost_mt=-mt
1508 + # Look for the abs path the static archive.
1509 + # $libext is computed by Libtool but let's make sure it's non empty.
1510 + test -z "$libext" &&
1511 + as_fn_error $? "the libext variable is empty, did you invoke Libtool?" "$LINENO" 5
1512 + boost_save_ac_objext=$ac_objext
1513 + # Generate the test file.
1514 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1515 +/* end confdefs.h. */
1516 +#include <boost/system/error_code.hpp>
1521 +boost::system::error_code e; e.clear();
1526 + if ac_fn_cxx_try_compile "$LINENO"; then :
1527 + ac_objext=do_not_rm_me_plz
1529 + as_fn_error $? "cannot compile a test that uses Boost system" "$LINENO" 5
1531 +rm -f core conftest.err conftest.$ac_objext
1532 + ac_objext=$boost_save_ac_objext
1533 + boost_failed_libs=
1534 +# Don't bother to ident the following nested for loops, only the 2
1535 +# innermost ones matter.
1536 +for boost_lib_ in system; do
1537 +for boost_tag_ in -$boost_cv_lib_tag ''; do
1538 +for boost_ver_ in -$boost_cv_lib_version ''; do
1539 +for boost_mt_ in $boost_mt -mt ''; do
1540 +for boost_rtopt_ in $boost_rtopt '' -d; do
1541 + for boost_lib in \
1542 + boost_$boost_lib_$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_ \
1543 + boost_$boost_lib_$boost_tag_$boost_rtopt_$boost_ver_ \
1544 + boost_$boost_lib_$boost_tag_$boost_mt_$boost_ver_ \
1545 + boost_$boost_lib_$boost_tag_$boost_ver_
1547 + # Avoid testing twice the same lib
1548 + case $boost_failed_libs in #(
1549 + (*@$boost_lib@*) continue;;
1551 + # If with_boost is empty, we'll search in /lib first, which is not quite
1552 + # right so instead we'll try to a location based on where the headers are.
1553 + boost_tmp_lib=$with_boost
1554 + test x"$with_boost" = x && boost_tmp_lib=${boost_cv_inc_path%/include}
1555 + for boost_ldpath in "$boost_tmp_lib/lib" '' \
1556 + /opt/local/lib* /usr/local/lib* /opt/lib* /usr/lib* \
1557 + "$with_boost" C:/Boost/lib /lib*
1559 + # Don't waste time with directories that don't exist.
1560 + if test x"$boost_ldpath" != x && test ! -e "$boost_ldpath"; then
1563 + boost_save_LDFLAGS=$LDFLAGS
1564 + # Are we looking for a static library?
1565 + case $boost_ldpath:$boost_rtopt_ in #(
1566 + (*?*:*s*) # Yes (Non empty boost_ldpath + s in rt opt)
1567 + boost_cv_lib_system_LIBS="$boost_ldpath/lib$boost_lib.$libext"
1568 + test -e "$boost_cv_lib_system_LIBS" || continue;; #(
1569 + (*) # No: use -lboost_foo to find the shared library.
1570 + boost_cv_lib_system_LIBS="-l$boost_lib";;
1572 + boost_save_LIBS=$LIBS
1573 + LIBS="$boost_cv_lib_system_LIBS $LIBS"
1574 + test x"$boost_ldpath" != x && LDFLAGS="$LDFLAGS -L$boost_ldpath"
1575 + rm -f conftest$ac_exeext
1576 +boost_save_ac_ext=$ac_ext
1578 +# If we already have a .o, re-use it. We change $ac_ext so that $ac_link
1579 +# tries to link the existing object file instead of compiling from source.
1580 +test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false &&
1581 + $as_echo "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5
1582 +if { { ac_try="$ac_link"
1583 +case "(($ac_try" in
1584 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1585 + *) ac_try_echo=$ac_try;;
1587 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1588 +$as_echo "$ac_try_echo"; } >&5
1589 + (eval "$ac_link") 2>conftest.err
1591 + if test -s conftest.err; then
1592 + grep -v '^ *+' conftest.err >conftest.er1
1593 + cat conftest.er1 >&5
1594 + mv -f conftest.er1 conftest.err
1596 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1597 + test $ac_status = 0; } && {
1598 + test -z "$ac_cxx_werror_flag" ||
1599 + test ! -s conftest.err
1600 + } && test -s conftest$ac_exeext && {
1601 + test "$cross_compiling" = yes ||
1602 + $as_executable_p conftest$ac_exeext
1604 + boost_cv_lib_system=yes
1606 + if $boost_use_source; then
1607 + $as_echo "$as_me: failed program was:" >&5
1608 +sed 's/^/| /' conftest.$ac_ext >&5
1611 + boost_cv_lib_system=no
1613 +ac_objext=$boost_save_ac_objext
1614 +ac_ext=$boost_save_ac_ext
1615 +rm -f core conftest.err conftest_ipa8_conftest.oo \
1616 + conftest$ac_exeext
1617 + ac_objext=$boost_save_ac_objext
1618 + LDFLAGS=$boost_save_LDFLAGS
1619 + LIBS=$boost_save_LIBS
1620 + if test x"$boost_cv_lib_system" = xyes; then
1621 + # Check or used cached result of whether or not using -R or
1622 + # -rpath makes sense. Some implementations of ld, such as for
1623 + # Mac OSX, require -rpath but -R is the flag known to work on
1624 + # other systems. https://github.com/tsuna/boost.m4/issues/19
1625 + if ${boost_cv_rpath_link_ldflag+:} false; then :
1626 + $as_echo_n "(cached) " >&6
1628 + case $boost_ldpath in
1629 + '') # Nothing to do.
1630 + boost_cv_rpath_link_ldflag=
1631 + boost_rpath_link_ldflag_found=yes;;
1633 + for boost_cv_rpath_link_ldflag in -Wl,-R, -Wl,-rpath,; do
1634 + LDFLAGS="$boost_save_LDFLAGS -L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
1635 + LIBS="$boost_save_LIBS $boost_cv_lib_system_LIBS"
1636 + rm -f conftest$ac_exeext
1637 +boost_save_ac_ext=$ac_ext
1639 +# If we already have a .o, re-use it. We change $ac_ext so that $ac_link
1640 +# tries to link the existing object file instead of compiling from source.
1641 +test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false &&
1642 + $as_echo "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5
1643 +if { { ac_try="$ac_link"
1644 +case "(($ac_try" in
1645 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1646 + *) ac_try_echo=$ac_try;;
1648 +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1649 +$as_echo "$ac_try_echo"; } >&5
1650 + (eval "$ac_link") 2>conftest.err
1652 + if test -s conftest.err; then
1653 + grep -v '^ *+' conftest.err >conftest.er1
1654 + cat conftest.er1 >&5
1655 + mv -f conftest.er1 conftest.err
1657 + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1658 + test $ac_status = 0; } && {
1659 + test -z "$ac_cxx_werror_flag" ||
1660 + test ! -s conftest.err
1661 + } && test -s conftest$ac_exeext && {
1662 + test "$cross_compiling" = yes ||
1663 + $as_executable_p conftest$ac_exeext
1665 + boost_rpath_link_ldflag_found=yes
1668 + if $boost_use_source; then
1669 + $as_echo "$as_me: failed program was:" >&5
1670 +sed 's/^/| /' conftest.$ac_ext >&5
1673 + boost_rpath_link_ldflag_found=no
1675 +ac_objext=$boost_save_ac_objext
1676 +ac_ext=$boost_save_ac_ext
1677 +rm -f core conftest.err conftest_ipa8_conftest.oo \
1678 + conftest$ac_exeext
1682 + if test "x$boost_rpath_link_ldflag_found" != "xyes"; then :
1683 + as_fn_error $? "Unable to determine whether to use -R or -rpath" "$LINENO" 5
1685 + LDFLAGS=$boost_save_LDFLAGS
1686 + LIBS=$boost_save_LIBS
1690 + test x"$boost_ldpath" != x &&
1691 + boost_cv_lib_system_LDFLAGS="-L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
1692 + boost_cv_lib_system_LDPATH="$boost_ldpath"
1695 + boost_failed_libs="$boost_failed_libs@$boost_lib@"
1704 +rm -f conftest.$ac_objext
1707 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_system" >&5
1708 +$as_echo "$boost_cv_lib_system" >&6; }
1709 +case $boost_cv_lib_system in #(
1710 + (no) $as_echo "$as_me: failed program was:" >&5
1711 +sed 's/^/| /' conftest.$ac_ext >&5
1713 + as_fn_error $? "cannot find the flags to link with Boost system" "$LINENO" 5
1716 +BOOST_SYSTEM_LDFLAGS=$boost_cv_lib_system_LDFLAGS
1717 +BOOST_SYSTEM_LDPATH=$boost_cv_lib_system_LDPATH
1718 +BOOST_LDPATH=$boost_cv_lib_system_LDPATH
1719 +BOOST_SYSTEM_LIBS=$boost_cv_lib_system_LIBS
1720 +CPPFLAGS=$boost_save_CPPFLAGS
1722 +ac_cpp='$CXXCPP $CPPFLAGS'
1723 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1724 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1725 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1733 @@ -18051,12 +18590,12 @@ if test -n "$MDDS_CFLAGS"; then
1734 pkg_cv_MDDS_CFLAGS="$MDDS_CFLAGS"
1735 elif test -n "$PKG_CONFIG"; then
1736 if test -n "$PKG_CONFIG" && \
1737 - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mdds >= 0.8.0\""; } >&5
1738 - ($PKG_CONFIG --exists --print-errors "mdds >= 0.8.0") 2>&5
1739 + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mdds >= 0.11.0\""; } >&5
1740 + ($PKG_CONFIG --exists --print-errors "mdds >= 0.11.0") 2>&5
1742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1743 test $ac_status = 0; }; then
1744 - pkg_cv_MDDS_CFLAGS=`$PKG_CONFIG --cflags "mdds >= 0.8.0" 2>/dev/null`
1745 + pkg_cv_MDDS_CFLAGS=`$PKG_CONFIG --cflags "mdds >= 0.11.0" 2>/dev/null`
1746 test "x$?" != "x0" && pkg_failed=yes
1749 @@ -18068,12 +18607,12 @@ if test -n "$MDDS_LIBS"; then
1750 pkg_cv_MDDS_LIBS="$MDDS_LIBS"
1751 elif test -n "$PKG_CONFIG"; then
1752 if test -n "$PKG_CONFIG" && \
1753 - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mdds >= 0.8.0\""; } >&5
1754 - ($PKG_CONFIG --exists --print-errors "mdds >= 0.8.0") 2>&5
1755 + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mdds >= 0.11.0\""; } >&5
1756 + ($PKG_CONFIG --exists --print-errors "mdds >= 0.11.0") 2>&5
1758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1759 test $ac_status = 0; }; then
1760 - pkg_cv_MDDS_LIBS=`$PKG_CONFIG --libs "mdds >= 0.8.0" 2>/dev/null`
1761 + pkg_cv_MDDS_LIBS=`$PKG_CONFIG --libs "mdds >= 0.11.0" 2>/dev/null`
1762 test "x$?" != "x0" && pkg_failed=yes
1765 @@ -18094,14 +18633,14 @@ else
1766 _pkg_short_errors_supported=no
1768 if test $_pkg_short_errors_supported = yes; then
1769 - MDDS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "mdds >= 0.8.0" 2>&1`
1770 + MDDS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "mdds >= 0.11.0" 2>&1`
1772 - MDDS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "mdds >= 0.8.0" 2>&1`
1773 + MDDS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "mdds >= 0.11.0" 2>&1`
1775 # Put the nasty error message in config.log where it belongs
1776 echo "$MDDS_PKG_ERRORS" >&5
1778 - as_fn_error $? "Package requirements (mdds >= 0.8.0) were not met:
1779 + as_fn_error $? "Package requirements (mdds >= 0.11.0) were not met:
1783 @@ -19998,7 +20537,7 @@ $as_echo "$as_me: executing $ac_file com
1785 case $ac_file$ac_mode in
1786 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
1787 - # Autoconf 2.62 quotes --file arguments for eval, but not when files
1788 + # Older Autoconf quotes --file arguments for eval, but not when files
1789 # are listed without --file. Let's play safe and only enable the eval
1790 # if we detect the quoting.
1791 case $CONFIG_FILES in
1792 @@ -20049,7 +20588,7 @@ $as_echo X"$mf" |
1793 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
1794 test -z "$DEPDIR" && continue
1795 am__include=`sed -n 's/^am__include = //p' < "$mf"`
1796 - test -z "am__include" && continue
1797 + test -z "$am__include" && continue
1798 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
1799 # Find all dependency output files, they are included files with
1800 # $(DEPDIR) in their names. We invoke sed twice because it is the