diff -Nru quantlib-1.21/acinclude.m4 quantlib-1.24/acinclude.m4 --- quantlib-1.21/acinclude.m4 2020-06-17 14:46:04.000000000 +0000 +++ quantlib-1.24/acinclude.m4 2021-09-28 08:59:32.000000000 +0000 @@ -1,36 +1,30 @@ -# QL_CHECK_LONG_LONG -# ---------------------------------------------- -# Check whether long long is supported. -AC_DEFUN([QL_CHECK_LONG_LONG], -[AC_MSG_CHECKING([long long support]) - AC_TRY_COMPILE( - [], - [long long i; - unsigned long long j; - ], - [AC_MSG_RESULT([yes]) - AC_DEFINE([QL_HAVE_LONG_LONG],[], - [Define this if your compiler supports the long long type.]) - ], - [AC_MSG_RESULT([no]) - ]) -]) - -# QL_CHECK_ASINH -# ---------------------------------------------- -# Check whether the asinh function is defined in cmath. -# It defines QL_HAVE_ASINH if found. -AC_DEFUN([QL_CHECK_ASINH], -[AC_MSG_CHECKING([for asinh]) - AC_TRY_COMPILE( - [@%:@include], - [double x = asinh(0.0);], - [AC_MSG_RESULT([yes]) - AC_DEFINE([QL_HAVE_ASINH],[], - [Define this if your compiler defines asinh in .]) - ], - [AC_MSG_RESULT([no]) +# QL_CHECK_CPP11 +# -------------------- +# Check whether C++11 features are supported by default. +# If not (e.g., with Clang on Mac OS) add -std=c++11 +AC_DEFUN([QL_CHECK_CPP11], +[AC_MSG_CHECKING([for C++11 support]) + AC_COMPILE_IFELSE( + [AC_LANG_PROGRAM( + [[@%:@include + struct S { + int i = 3; + double x = 3.5; + }; + + class C { + public: + C(int) noexcept; + C(std::initializer_list); + S f() { return { 2, 1.5 }; } + }; + ]], + [[]])], + [AC_MSG_RESULT([yes])], + [AC_MSG_RESULT([no: adding -std=c++11 to CXXFLAGS]) + AC_SUBST([CPP11_CXXFLAGS],["-std=c++11"]) + AC_SUBST([CXXFLAGS],["${CXXFLAGS} -std=c++11"]) ]) ]) @@ -39,12 +33,13 @@ # Check whether the Boost headers are available AC_DEFUN([QL_CHECK_BOOST_DEVEL], [AC_MSG_CHECKING([for Boost development files]) - AC_TRY_COMPILE( - [@%:@include - @%:@include - @%:@include - @%:@include ], - [], + AC_COMPILE_IFELSE( + [AC_LANG_PROGRAM( + [[@%:@include + @%:@include + @%:@include + @%:@include ]], + [[]])], [AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no]) AC_MSG_ERROR([Boost development files not found]) @@ -57,11 +52,12 @@ AC_DEFUN([QL_CHECK_BOOST_VERSION], [AC_MSG_CHECKING([for Boost version >= 1.48]) AC_REQUIRE([QL_CHECK_BOOST_DEVEL]) - AC_TRY_COMPILE( - [@%:@include ], - [@%:@if BOOST_VERSION < 104800 - @%:@error too old - @%:@endif], + AC_COMPILE_IFELSE( + [AC_LANG_PROGRAM( + [[@%:@include ]], + [[@%:@if BOOST_VERSION < 104800 + @%:@error too old + @%:@endif]])], [AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no]) AC_MSG_ERROR([outdated Boost installation]) @@ -74,11 +70,12 @@ AC_DEFUN([QL_CHECK_BOOST_VERSION_1_58_OR_HIGHER], [AC_MSG_CHECKING([for Boost version >= 1.58]) AC_REQUIRE([QL_CHECK_BOOST_DEVEL]) - AC_TRY_COMPILE( - [@%:@include ], - [@%:@if BOOST_VERSION < 105800 - @%:@error too old - @%:@endif], + AC_COMPILE_IFELSE( + [AC_LANG_PROGRAM( + [[@%:@include ]], + [[@%:@if BOOST_VERSION < 105800 + @%:@error too old + @%:@endif]])], [AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no]) AC_MSG_ERROR([Boost version 1.58 or higher is required for the thread-safe observer pattern]) @@ -91,112 +88,48 @@ AC_DEFUN([QL_CHECK_BOOST_VERSION_1_59_OR_HIGHER], [AC_MSG_CHECKING([for Boost version >= 1.59]) AC_REQUIRE([QL_CHECK_BOOST_DEVEL]) - AC_TRY_COMPILE( - [@%:@include ], - [@%:@if BOOST_VERSION < 105900 - @%:@error too old - @%:@endif], + AC_COMPILE_IFELSE( + [AC_LANG_PROGRAM( + [[@%:@include ]], + [[@%:@if BOOST_VERSION < 105900 + @%:@error too old + @%:@endif]])], [AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no]) AC_MSG_ERROR([Boost version 1.59 or higher is required for the parallel unit test runner.]) ]) ]) - - -# QL_CHECK_BOOST_UBLAS -# -------------------- -# Check whether the Boost headers are available -AC_DEFUN([QL_CHECK_BOOST_UBLAS], -[AC_MSG_CHECKING([for Boost::uBLAS support]) - AC_TRY_COMPILE( - [@%:@include - @%:@if BOOST_VERSION > 106300 - @%:@include - @%:@endif - @%:@include - @%:@include - @%:@include ], - [], - [AC_MSG_RESULT([yes])], - [AC_MSG_RESULT([no]) - AC_MSG_WARN([Some functionality will be disabled.]) - AC_DEFINE([QL_NO_UBLAS_SUPPORT],[], - [Define this if your compiler does not support Boost::uBLAS.]) - ]) -]) - # QL_CHECK_BOOST_UNIT_TEST # ------------------------ # Check whether the Boost unit-test framework is available AC_DEFUN([QL_CHECK_BOOST_UNIT_TEST], -[AC_MSG_CHECKING([for Boost.Test, Boost.Timer, Boost.Chrono and Boost.System]) +[AC_MSG_CHECKING([for Boost.Test]) AC_REQUIRE([AC_PROG_CC]) ql_original_LIBS=$LIBS ql_original_CXXFLAGS=$CXXFLAGS CC_BASENAME=`basename $CC` CC_VERSION=`echo "__GNUC__ __GNUC_MINOR__" | $CC -E -x c - | tail -n 1 | $SED -e "s/ //"` - for suffix in "-$CC_BASENAME$CC_VERSION" \ + for suffix in "" \ + "-$CC_BASENAME$CC_VERSION" \ "-$CC_BASENAME" \ - "" \ "-mt-$CC_BASENAME$CC_VERSION" \ "-$CC_BASENAME$CC_VERSION-mt" \ "-x$CC_BASENAME$CC_VERSION-mt" \ "-mt-$CC_BASENAME" \ "-$CC_BASENAME-mt" \ "-mt" ; do - boost_libs="-lboost_unit_test_framework$suffix -lboost_timer$suffix -lboost_system$suffix" - LIBS="$ql_original_LIBS $boost_libs" - # static version - CXXFLAGS="$ql_original_CXXFLAGS" - boost_unit_found=no - AC_LINK_IFELSE([AC_LANG_SOURCE( - [@%:@include - @%:@include - using namespace boost::unit_test_framework; - test_suite* - init_unit_test_suite(int argc, char** argv) - { - boost::timer::auto_cpu_timer t; - return (test_suite*) 0; - } - ])], - [boost_unit_found=$boost_libs - boost_defines="" - break], - []) - # shared version - CXXFLAGS="$ql_original_CXXFLAGS -DBOOST_TEST_MAIN -DBOOST_TEST_DYN_LINK" - boost_unit_found=no - AC_LINK_IFELSE([AC_LANG_SOURCE( - [@%:@include - @%:@include - using namespace boost::unit_test_framework; - test_suite* - init_unit_test_suite(int argc, char** argv) - { - boost::timer::auto_cpu_timer t; - return (test_suite*) 0; - } - ])], - [boost_unit_found=$boost_libs - boost_defines="-DBOOST_TEST_DYN_LINK" - break], - []) - # Boost.Timer might require Boost.Chrono - boost_libs="-lboost_unit_test_framework$suffix -lboost_timer$suffix -lboost_chrono$suffix -lboost_system$suffix" + boost_libs="-lboost_unit_test_framework$suffix" LIBS="$ql_original_LIBS $boost_libs" # static version CXXFLAGS="$ql_original_CXXFLAGS" boost_unit_found=no AC_LINK_IFELSE([AC_LANG_SOURCE( [@%:@include - @%:@include using namespace boost::unit_test_framework; test_suite* init_unit_test_suite(int argc, char** argv) { - boost::timer::auto_cpu_timer t; return (test_suite*) 0; } ])], @@ -209,12 +142,10 @@ boost_unit_found=no AC_LINK_IFELSE([AC_LANG_SOURCE( [@%:@include - @%:@include using namespace boost::unit_test_framework; test_suite* init_unit_test_suite(int argc, char** argv) { - boost::timer::auto_cpu_timer t; return (test_suite*) 0; } ])], @@ -248,9 +179,9 @@ ql_original_CXXFLAGS=$CXXFLAGS CC_BASENAME=`basename $CC` CC_VERSION=`echo "__GNUC__ __GNUC_MINOR__" | $CC -E -x c - | tail -n 1 | $SED -e "s/ //"` - for suffix in "-$CC_BASENAME$CC_VERSION" \ + for suffix in "" \ + "-$CC_BASENAME$CC_VERSION" \ "-$CC_BASENAME" \ - "" \ "-mt-$CC_BASENAME$CC_VERSION" \ "-$CC_BASENAME$CC_VERSION-mt" \ "-x$CC_BASENAME$CC_VERSION-mt" \ @@ -295,6 +226,7 @@ else AC_MSG_RESULT([yes]) AC_SUBST([BOOST_THREAD_LIB],[$boost_thread_lib]) + AC_SUBST([PTHREAD_CXXFLAGS],["-pthread"]) AC_SUBST([CXXFLAGS],["${CXXFLAGS} -pthread"]) fi ]) @@ -346,7 +278,6 @@ AC_DEFUN([QL_CHECK_BOOST], [AC_REQUIRE([QL_CHECK_BOOST_DEVEL]) AC_REQUIRE([QL_CHECK_BOOST_VERSION]) - AC_REQUIRE([QL_CHECK_BOOST_UBLAS]) AC_REQUIRE([QL_CHECK_BOOST_UNIT_TEST]) ]) diff -Nru quantlib-1.21/aclocal.m4 quantlib-1.24/aclocal.m4 --- quantlib-1.21/aclocal.m4 2021-01-17 14:00:12.000000000 +0000 +++ quantlib-1.24/aclocal.m4 2021-10-17 08:02:15.000000000 +0000 @@ -1,6 +1,6 @@ -# generated automatically by aclocal 1.16.3 -*- Autoconf -*- +# generated automatically by aclocal 1.16.5 -*- Autoconf -*- -# Copyright (C) 1996-2020 Free Software Foundation, Inc. +# Copyright (C) 1996-2021 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -14,13 +14,13 @@ m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl -m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],, -[m4_warning([this file was generated for autoconf 2.69. +m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.71],, +[m4_warning([this file was generated for autoconf 2.71. You have another version of autoconf. It may work, but is not guaranteed to. If you have problems, you may need to regenerate the build system entirely. To do so, use the procedure documented by the package, typically 'autoreconf'.])]) -# Copyright (C) 2002-2020 Free Software Foundation, Inc. +# Copyright (C) 2002-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -35,7 +35,7 @@ [am__api_version='1.16' dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to dnl require some minimum version. Point them to the right macro. -m4_if([$1], [1.16.3], [], +m4_if([$1], [1.16.5], [], [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl ]) @@ -51,14 +51,14 @@ # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], -[AM_AUTOMAKE_VERSION([1.16.3])dnl +[AM_AUTOMAKE_VERSION([1.16.5])dnl m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) # AM_AUX_DIR_EXPAND -*- Autoconf -*- -# Copyright (C) 2001-2020 Free Software Foundation, Inc. +# Copyright (C) 2001-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -110,7 +110,7 @@ # AM_CONDITIONAL -*- Autoconf -*- -# Copyright (C) 1997-2020 Free Software Foundation, Inc. +# Copyright (C) 1997-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -141,7 +141,7 @@ Usually this means the macro was only invoked conditionally.]]) fi])]) -# Copyright (C) 1999-2020 Free Software Foundation, Inc. +# Copyright (C) 1999-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -332,7 +332,7 @@ # Generate code to set up dependency tracking. -*- Autoconf -*- -# Copyright (C) 1999-2020 Free Software Foundation, Inc. +# Copyright (C) 1999-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -400,7 +400,7 @@ # Do all the work for Automake. -*- Autoconf -*- -# Copyright (C) 1996-2020 Free Software Foundation, Inc. +# Copyright (C) 1996-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -428,6 +428,10 @@ # release and drop the old call support. AC_DEFUN([AM_INIT_AUTOMAKE], [AC_PREREQ([2.65])dnl +m4_ifdef([_$0_ALREADY_INIT], + [m4_fatal([$0 expanded multiple times +]m4_defn([_$0_ALREADY_INIT]))], + [m4_define([_$0_ALREADY_INIT], m4_expansion_stack)])dnl dnl Autoconf wants to disallow AM_ names. We explicitly allow dnl the ones we care about. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl @@ -464,7 +468,7 @@ [_AM_SET_OPTIONS([$1])dnl dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. m4_if( - m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]), + m4_ifset([AC_PACKAGE_NAME], [ok]):m4_ifset([AC_PACKAGE_VERSION], [ok]), [ok:ok],, [m4_fatal([AC_INIT should be called with package and version arguments])])dnl AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl @@ -516,6 +520,20 @@ [m4_define([AC_PROG_OBJCXX], m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl ]) +# Variables for tags utilities; see am/tags.am +if test -z "$CTAGS"; then + CTAGS=ctags +fi +AC_SUBST([CTAGS]) +if test -z "$ETAGS"; then + ETAGS=etags +fi +AC_SUBST([ETAGS]) +if test -z "$CSCOPE"; then + CSCOPE=cscope +fi +AC_SUBST([CSCOPE]) + AC_REQUIRE([AM_SILENT_RULES])dnl dnl The testsuite driver may need to know about EXEEXT, so add the dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This @@ -597,7 +615,7 @@ done echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) -# Copyright (C) 2001-2020 Free Software Foundation, Inc. +# Copyright (C) 2001-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -618,7 +636,7 @@ fi AC_SUBST([install_sh])]) -# Copyright (C) 2003-2020 Free Software Foundation, Inc. +# Copyright (C) 2003-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -637,7 +655,7 @@ rmdir .tst 2>/dev/null AC_SUBST([am__leading_dot])]) -# Copyright (C) 1996-2020 Free Software Foundation, Inc. +# Copyright (C) 1996-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -686,7 +704,7 @@ # Check to see how 'make' treats includes. -*- Autoconf -*- -# Copyright (C) 2001-2020 Free Software Foundation, Inc. +# Copyright (C) 2001-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -729,7 +747,7 @@ # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- -# Copyright (C) 1997-2020 Free Software Foundation, Inc. +# Copyright (C) 1997-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -763,7 +781,7 @@ # Helper functions for option handling. -*- Autoconf -*- -# Copyright (C) 2001-2020 Free Software Foundation, Inc. +# Copyright (C) 2001-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -792,7 +810,7 @@ AC_DEFUN([_AM_IF_OPTION], [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) -# Copyright (C) 1999-2020 Free Software Foundation, Inc. +# Copyright (C) 1999-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -839,7 +857,7 @@ # For backward compatibility. AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) -# Copyright (C) 2001-2020 Free Software Foundation, Inc. +# Copyright (C) 2001-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -858,7 +876,7 @@ # Check to make sure that the build environment is sane. -*- Autoconf -*- -# Copyright (C) 1996-2020 Free Software Foundation, Inc. +# Copyright (C) 1996-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -939,7 +957,7 @@ rm -f conftest.file ]) -# Copyright (C) 2009-2020 Free Software Foundation, Inc. +# Copyright (C) 2009-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -999,7 +1017,7 @@ _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl ]) -# Copyright (C) 2001-2020 Free Software Foundation, Inc. +# Copyright (C) 2001-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -1027,7 +1045,7 @@ INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" AC_SUBST([INSTALL_STRIP_PROGRAM])]) -# Copyright (C) 2006-2020 Free Software Foundation, Inc. +# Copyright (C) 2006-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -1046,7 +1064,7 @@ # Check how to create a tarball. -*- Autoconf -*- -# Copyright (C) 2004-2020 Free Software Foundation, Inc. +# Copyright (C) 2004-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, diff -Nru quantlib-1.21/ChangeLog.txt quantlib-1.24/ChangeLog.txt --- quantlib-1.21/ChangeLog.txt 2021-01-17 14:15:07.000000000 +0000 +++ quantlib-1.24/ChangeLog.txt 2021-10-17 08:01:45.000000000 +0000 @@ -1,1915 +1,2220 @@ -commit fb837f316c7e8803e40011c97dda90af6058688a +commit 6fb51a741aefcc7317d9f3f414d41c7cd447d9f4 Author: Luigi Ballabio -Date: Sun, 17 Jan 2021 15:13:43 +0100 +Date: Mon, 12 Jul 2021 09:46:54 +0200 - Set version to 1.21 final. + Set version to 1.24 final. + CMakeLists.txt | 4 ++-- configure.ac | 2 +- ql/version.hpp | 4 ++-- - 2 files changed, 3 insertions(+), 3 deletions(-) + 3 files changed, 5 insertions(+), 5 deletions(-) + +commit b8feb08ea805e14101e121d8433e4423acce08bb +Author: Luigi Ballabio +Date: Thu, 14 Oct 2021 17:13:47 +0200 -commit 4cbe1d8e252d76838b1c765243a9b6b2c34da53b + Avoid clang-tidy warnings + + ql/patterns/singleton.hpp | 16 ++++++++-------- + 1 file changed, 8 insertions(+), 8 deletions(-) + +commit cf65b67337a4785431791247ac24e839958e40db Author: Luigi Ballabio -Date: Tue, 5 Jan 2021 15:58:26 +0100 +Date: Thu, 14 Oct 2021 16:49:37 +0200 - Update changelog and news + Fix documentation - ChangeLog.txt | 2517 +++++++++++++++++++++++++++-------------------- - Contributors.txt | 2 + - Docs/pages/history.docs | 46 +- - News.md | 90 +- - 4 files changed, 1534 insertions(+), 1121 deletions(-) + Docs/pages/history.docs | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) -commit a630775c6df2472804c30f5ca034e6d09106fd44 +commit f69b52f74a24eecf2c84c1299b54ce7c0d586717 Author: Luigi Ballabio -Date: Tue, 5 Jan 2021 15:57:50 +0100 +Date: Thu, 1 Apr 2021 11:28:16 +0200 - Set version to 1.21 rc + Set version to 1.24 rc + CMakeLists.txt | 4 ++-- configure.ac | 2 +- ql/version.hpp | 4 ++-- - 2 files changed, 3 insertions(+), 3 deletions(-) + 3 files changed, 5 insertions(+), 5 deletions(-) -commit 0339334a3cd3ceb20659c9abb39a738fdf9c9e3a +commit 834c8f07c2e3661daef8b3678dd16cdd2974669e Author: Luigi Ballabio -Date: Tue, 5 Jan 2021 13:01:52 +0100 +Date: Thu, 14 Oct 2021 12:09:21 +0200 - Fix example setup + Update news, contributor and changelog - Examples/CDS/CDS.cpp | 16 +++++++++------- - 1 file changed, 9 insertions(+), 7 deletions(-) + ChangeLog.txt | 3078 +++++++++++++++++++++++++---------------------- + Contributors.txt | 4 + + Docs/pages/history.docs | 76 +- + News.md | 141 ++- + 4 files changed, 1770 insertions(+), 1529 deletions(-) -commit eba62d844cffac4f02ecdf3c71184f0a17b32f81 +commit 082afc9aab091f96240ffed431dcc314ddc24558 Author: Luigi Ballabio -Date: Mon, 4 Jan 2021 23:46:42 +0100 +Date: Tue, 12 Oct 2021 17:54:27 +0200 - Cosmetic changes to some test messages + Change a few test messages - test-suite/forwardoption.cpp | 2 +- - test-suite/schedule.cpp | 14 +++++++------- - test-suite/ultimateforwardtermstructure.cpp | 6 +++--- - 3 files changed, 11 insertions(+), 11 deletions(-) + test-suite/bonds.cpp | 2 +- + test-suite/callablebonds.cpp | 2 +- + test-suite/swap.cpp | 2 +- + 3 files changed, 3 insertions(+), 3 deletions(-) -commit 7a8abf65dba1ace71e28d7b15ac109a4b074407c +commit 804a32253ec9eb77abad4d2c8355394b19dd88e4 +Merge: 4d259c877 3ffe7d856 Author: Luigi Ballabio -Date: Mon, 4 Jan 2021 17:55:01 +0100 - - Add check on docs generation. +Date: Tue, 12 Oct 2021 13:49:15 +0200 - .github/workflows/doxygen.yml | 16 ++++++++++++++++ - Docs/quantlib.doxy | 20 ++++++++++++-------- - 2 files changed, 28 insertions(+), 8 deletions(-) + Merge pull request #1190. + + Move par coupon logic to coupon pricer -commit 1bc1d74479d37560c5e782e15f80d2c1174545df +commit 3ffe7d8563381a4f001c257cb7e8f5be7d4f3b3e Author: Luigi Ballabio -Date: Mon, 4 Jan 2021 19:19:16 +0100 +Date: Fri, 1 Oct 2021 18:22:34 +0200 - Fix documentation warnings + More documentation - ql/pricingengines/forward/mcforwardeuropeanbsengine.hpp | 6 +++--- - ql/pricingengines/forward/mcforwardeuropeanhestonengine.hpp | 6 +++--- - 2 files changed, 6 insertions(+), 6 deletions(-) + ql/cashflows/iborcoupon.cpp | 4 ++-- + ql/cashflows/iborcoupon.hpp | 26 ++++++++++++++++++++------ + 2 files changed, 22 insertions(+), 8 deletions(-) -commit 50658631f7f49e9044fed218770de35ff1a32c93 +commit 4d259c8778b803a44e0c3570f741ccbaa94ff7ef Author: Luigi Ballabio -Date: Wed, 30 Dec 2020 18:19:34 +0100 +Date: Fri, 8 Oct 2021 14:13:46 +0200 - Use clang 10 + Add Clang 13 to CI build - .github/workflows/tidy.yml | 2 +- - tools/run_tidy.sh | 2 +- - 2 files changed, 2 insertions(+), 2 deletions(-) + .github/workflows/linux-full-tests.yml | 5 +++++ + .github/workflows/linux-nondefault.yml | 5 +++++ + .github/workflows/linux.yml | 5 +++++ + 3 files changed, 15 insertions(+) -commit 957998c94ad20247749715bb32a61fd263bfec02 -Merge: 5e968f450 fbe2d8ba5 +commit a26b4fea301c2791691dad19322626fe98657f92 +Merge: 9cae2ba8d 57edda247 Author: Luigi Ballabio -Date: Wed, 30 Dec 2020 09:16:21 +0100 +Date: Mon, 11 Oct 2021 20:28:26 +0200 - Merge pull request #970. + Merge pull request #1198. - Fix holiday in Thailand calendar and update + speeding up tests by reducing the number of samples in some MC tests -commit fbe2d8ba5f8e5f95adbba47be00470b5051bd920 +commit 57edda2478dba56e77dc2dc0e211d91c852f26fa Author: Luigi Ballabio -Date: Tue, 29 Dec 2020 21:25:55 +0100 +Date: Mon, 11 Oct 2021 17:01:16 +0200 - Fix holiday in Thailand calendar and update - - Thanks to phil-zxx. + Move test to Fast section - ql/time/calendars/thailand.cpp | 11 +++++++++-- - 1 file changed, 9 insertions(+), 2 deletions(-) + test-suite/doublebarrieroption.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) -commit 5e968f450d7450d8f90f681f11a114a8d6c688d8 +commit 9cae2ba8deb3ec14a3bcbfe598f186b4e792e3e8 +Merge: d782f2162 01cbbed42 Author: Luigi Ballabio -Date: Fri, 18 Dec 2020 11:58:25 +0100 +Date: Mon, 11 Oct 2021 12:15:49 +0200 + + Merge pull request #1208. + + Deprecate the `UnitedStates` constructor that doesn't explicitly specify a market - Add check for outdated file lists +commit bf7b4ca2cbd8863b2d865dfe7493c55af3125c26 +Author: shoja +Date: Mon, 11 Oct 2021 11:10:44 +0100 - .github/workflows/filelists.yml | 10 +++++++ - QuantLib.vcxproj | 2 +- - QuantLib.vcxproj.filters | 6 +++++ - tools/{sync_projects.sh => check_filelists.sh} | 35 ++++++++++++------------ - tools/check_filelists_diffs.py | 37 ++++++++++++++++++++++++++ - 5 files changed, 71 insertions(+), 19 deletions(-) + Move some MC tests from slow/fast to fast/faster category. -commit 55fc755b5a9ee7de2e0a7e994f25fa40fb15366d -Merge: de9d494e0 03ebcc520 + test-suite/asianoptions.cpp | 8 +------- + test-suite/forwardoption.cpp | 12 +++--------- + 2 files changed, 4 insertions(+), 16 deletions(-) + +commit d782f2162a760280c3bfd5e365a068adae3953d9 +Merge: 82e32f91e 5c5e7d0e6 Author: Luigi Ballabio -Date: Thu, 17 Dec 2020 23:06:02 +0100 +Date: Mon, 11 Oct 2021 10:21:01 +0200 - Merge pull request #967. + Merge pull request #1206. - Added experimental/[asian|forward]/all.hpp to CMakeLists + Add the implementation of AbcdAtmVolCurve::endCriteria(). -commit 03ebcc520e14bfe34666224f7a6d88b7e3fbd462 -Author: Matthias Siemering -Date: Thu, 17 Dec 2020 19:16:45 +0100 +commit 01cbbed42e085df4a52c4fa5ce97a0d90c9cad06 +Author: Luigi Ballabio +Date: Sun, 10 Oct 2021 22:49:54 +0200 - Added experimental/[asian|forward]/all.hpp to CMakeLists + Deprecate UnitedStates constructor without Market - ql/CMakeLists.txt | 2 ++ - 1 file changed, 2 insertions(+) + ql/time/calendars/unitedstates.hpp | 10 +++++++++- + test-suite/convertiblebonds.cpp | 2 +- + test-suite/creditdefaultswap.cpp | 2 +- + test-suite/daycounters.cpp | 4 ++-- + test-suite/overnightindexedswap.cpp | 4 ++-- + test-suite/piecewiseyieldcurve.cpp | 6 +++--- + test-suite/schedule.cpp | 10 +++++----- + 7 files changed, 23 insertions(+), 15 deletions(-) + +commit 5c5e7d0e614430301669baae9944906df31c0e9e +Author: shoja +Date: Sun, 10 Oct 2021 18:38:38 +0100 + + Add the implementation of AbcdAtmVolCurve::endCriteria(). + + ql/experimental/volatility/abcdatmvolcurve.hpp | 4 ++++ + 1 file changed, 4 insertions(+) + +commit ff9c62ea143f66daabcf2f4c537c9f6b0170d689 +Author: shoja +Date: Sat, 9 Oct 2021 22:37:49 +0100 -commit de9d494e0e0d51c23666f9260726e9718c9a793a -Merge: 1650d68f3 f3bf5082b + Using forloop with index instead of additional index variables. Reducing some of the MC samples and correction some others to be representable in 2^N-1 form. + + test-suite/asianoptions.cpp | 12 +++--- + test-suite/forwardoption.cpp | 90 ++++++++++++++++++++++---------------------- + 2 files changed, 50 insertions(+), 52 deletions(-) + +commit 82e32f91ef7d880a75a6d0158fa04ada8905cbcd +Merge: 9512319bb 12d9b06b8 Author: Luigi Ballabio -Date: Wed, 16 Dec 2020 09:08:52 +0100 +Date: Thu, 7 Oct 2021 20:07:27 +0200 - Merge pull request #966. + Merge pull request #1202. - Adding a control variate to the arithmetic asian MC heston pricer + Add missing call to calculate() before before returning the additional results map. -commit f3bf5082b42f77dc522fd716004ca6af77528b81 -Merge: e7a038b3f f3a22efc6 -Author: jackgillett101 -Date: Tue, 15 Dec 2020 23:06:38 +0800 +commit 9512319bb91e19b58a86752a5d444385263fe486 +Merge: 1ae273550 295851fca +Author: Luigi Ballabio +Date: Thu, 7 Oct 2021 12:23:24 +0200 - Merge pull request #23 from jackgillett101/clang-tidy-fixes-refs/heads/arithmetic_asian_heston_control_variate + Merge pull request #1201. - Automated fixes by clang-tidy + Add missing definitions of static class members -commit e7a038b3fc71c3ec74af2ebd915f5d41ae29fdbd -Author: jackgillett101 -Date: Tue, 15 Dec 2020 23:05:26 +0800 +commit 12d9b06b82fe89ee30dfdfaa3d06a09892b14a0f +Author: shoja +Date: Mon, 4 Oct 2021 12:06:58 +0100 - Manual conversion of double to Size + Add missing call to calculate() before before returning the additional results map. - test-suite/asianoptions.cpp | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) + ql/instrument.hpp | 1 + + 1 file changed, 1 insertion(+) -commit f3a22efc6dd2e4531ee5ca642e7b124550f66ade -Author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> -Date: Tue, 15 Dec 2020 14:52:06 +0000 +commit 295851fca58acbab16d53e0821243761305721ed +Author: Bojan Nikolic +Date: Sun, 3 Oct 2021 23:10:36 +0100 - Automated fixes by clang-tidy + Add definitions of static class members + + SWIG-Python build was failing because these were not found - ql/experimental/asian/analytic_discr_geom_av_price_heston.hpp | 8 +++++--- - 1 file changed, 5 insertions(+), 3 deletions(-) + ql/money.cpp | 4 ++++ + 1 file changed, 4 insertions(+) -commit 1388c379e97b58926677a7987be8b183b9559667 -Author: jackgillett101 -Date: Tue, 15 Dec 2020 21:42:57 +0800 +commit cbf406b3dad9cdffa930e4e4610c889aa3236a39 +Author: shoja +Date: Sun, 3 Oct 2021 16:53:55 +0100 - Seeding the test cases and reducing path numbers to increase speed + Adjust the number of samples to be a number representable by 2^N-1 for some N, as its using low disprepancy RNG. - test-suite/asianoptions.cpp | 12 +++++++----- - 1 file changed, 7 insertions(+), 5 deletions(-) + test-suite/asianoptions.cpp | 33 ++++++++++++--------------------- + 1 file changed, 12 insertions(+), 21 deletions(-) -commit f7a5666780d3ea5d974701d3942c7751d5851e41 -Author: jackgillett101 -Date: Tue, 15 Dec 2020 21:39:25 +0800 +commit 1ae273550696e37a7e83a65c5869de4cbeb5d58b +Merge: 43f601715 ccc6edfbf +Author: Luigi Ballabio +Date: Sat, 2 Oct 2021 20:38:35 +0200 - Adding pull request link to the in-code documentation + Merge pull request #1199. + + fix some warnings - ql/pricingengines/asian/mc_discr_arith_av_price_heston.hpp | 3 +++ - 1 file changed, 3 insertions(+) +commit ccc6edfbf0cdc432c15bd64d64c123d171a024bc +Author: Peter Caspers +Date: Sat, 2 Oct 2021 13:37:43 +0200 -commit 8fa11588c8ab0c29fd1e9631b04831f8dc9f6ff0 -Author: jackgillett101 -Date: Tue, 15 Dec 2020 21:30:36 +0800 + fix check - Adding a control variate to the arithmetic asian MC heston pricer + ql/termstructures/volatility/swaption/swaptionvolcube1.hpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) - .../asian/analytic_discr_geom_av_price_heston.cpp | 3 + - .../asian/mc_discr_arith_av_price_heston.hpp | 78 ++++++++++++++-- - test-suite/asianoptions.cpp | 104 +++++++++++++++++++++ - 3 files changed, 178 insertions(+), 7 deletions(-) +commit f0fc533b1be0125f4183e431c374d29610de395d +Author: Peter Caspers +Date: Sat, 2 Oct 2021 13:34:56 +0200 -commit 1650d68f309b94797309d483b23d8aa1174e9b3d -Merge: 597aa153a 9f9c4ebb4 -Author: Luigi Ballabio -Date: Mon, 14 Dec 2020 16:14:38 +0100 + fix check, we should use close_enough() actually, but we don't want to change the behaviour right now - Merge pull request #961. - - Initial commit for Analytic Discrete Geometric Average Asian pricer + ql/experimental/math/particleswarmoptimization.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 35987e245d48bdf14add94b8e07e718edb48e1d1 +Author: shoja +Date: Sat, 2 Oct 2021 12:10:22 +0100 + + speeding up the following tests by reducing the number of MC samples and rebaselining the results (Changing the tolerance); + testHestonAnalyticalVsMCPrices + testMCDiscreteArithmeticAveragePriceHeston + testMCDiscreteGeometricAveragePriceHeston + testMonteCarloDoubleBarrierWithAnalytical + testHestonMCPrices -commit 9f9c4ebb4f07ccd5a30731c55f11f8985cdfa44c + test-suite/asianoptions.cpp | 93 ++++++++++++++++++++++++++++++++++---- + test-suite/doublebarrieroption.cpp | 2 +- + test-suite/forwardoption.cpp | 70 +++++++++++++++++++++------- + 3 files changed, 139 insertions(+), 26 deletions(-) + +commit 3e39bf0c8d935de8bbbdc1a64a104f74771a9f18 Author: Luigi Ballabio -Date: Mon, 14 Dec 2020 12:51:59 +0100 +Date: Fri, 1 Oct 2021 18:22:34 +0200 - Declare integrands as inner classes. + Attempt consistent naming - .../asian/analytic_cont_geom_av_price_heston.cpp | 62 +++++++++--------- - .../asian/analytic_cont_geom_av_price_heston.hpp | 5 +- - .../asian/analytic_discr_geom_av_price_heston.cpp | 73 +++++++++++----------- - .../asian/analytic_discr_geom_av_price_heston.hpp | 5 +- - 4 files changed, 73 insertions(+), 72 deletions(-) + ql/cashflows/iborcoupon.cpp | 11 ++++++++--- + ql/cashflows/iborcoupon.hpp | 5 +++-- + ql/instruments/makevanillaswap.cpp | 13 +++++++++---- + ql/instruments/makevanillaswap.hpp | 5 +++-- + ql/instruments/vanillaswap.cpp | 4 ++-- + ql/instruments/vanillaswap.hpp | 2 +- + ql/termstructures/yield/ratehelpers.cpp | 18 +++++++++--------- + ql/termstructures/yield/ratehelpers.hpp | 10 +++++----- + 8 files changed, 40 insertions(+), 28 deletions(-) -commit 597aa153ac25fb9bbd39e7aaffe61d1600f5c707 -Merge: d24dfecbb db3528729 +commit 53c03f1852b8b35ca589c6a2ae9a79ce48e32ba7 Author: Luigi Ballabio -Date: Sun, 13 Dec 2020 22:49:12 +0100 +Date: Thu, 30 Sep 2021 17:28:13 +0200 - Merge pull request #964. - - avoid px!=0 exceptions with empty currencies + Restore deleted methods -commit e8d311d615646392eced5610a7cac1bcd439f330 -Author: jackgillett101 -Date: Sun, 13 Dec 2020 19:46:16 +0800 + ql/cashflows/iborcoupon.cpp | 12 ++++++++++++ + 1 file changed, 12 insertions(+) - Avoiding class name collisions by unqiuely naming integrand namespaces +commit 43f601715925dc5ac5f7eb07a69cb72c8c7ed08c +Author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> +Date: Wed, 29 Sep 2021 00:22:52 +0000 + + Automated fixes by clang-tidy - ql/experimental/asian/analytic_cont_geom_av_price_heston.cpp | 4 ++-- - ql/experimental/asian/analytic_discr_geom_av_price_heston.cpp | 6 +++--- - 2 files changed, 5 insertions(+), 5 deletions(-) + ql/cashflows/iborcoupon.cpp | 9 --------- + ql/cashflows/iborcoupon.hpp | 8 ++++++-- + ql/money.cpp | 5 ----- + ql/money.hpp | 4 ++-- + 4 files changed, 8 insertions(+), 18 deletions(-) -commit d24dfecbba3045101d7f1a2d7d5f8a64ad519c75 -Merge: e3d5dd895 100a153b5 +commit 75c1adfeb86a069df71b3ed14ccefedff35a055d +Merge: 10711e33b 54e2ccceb Author: Luigi Ballabio -Date: Sun, 13 Dec 2020 12:02:11 +0100 +Date: Tue, 28 Sep 2021 23:20:34 +0200 - Merge pull request #963. + Merge pull request #1187. - The set-env command is disabled. + Fix IborCoupon and Money data races -commit db35287292c1e82953ddc7241d50e2628461e1be -Author: Peter Caspers -Date: Sun, 13 Dec 2020 09:48:10 +0100 +commit 77fe280cb850570cf2b57c9f4ffd6d9bbf0e2294 +Author: Peter Caspers +Date: Tue, 28 Sep 2021 09:11:47 +0200 - avoid px!=0 exceptions with empty currencies + [touch:1189]swapped these two as well - ql/currency.hpp | 18 +++++++++++++++++- - 1 file changed, 17 insertions(+), 1 deletion(-) + test-suite/inflationcpiswap.cpp | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) -commit 50619ad3f8791d6aa23e48e05661c5a720fb95d2 -Author: jackgillett101 -Date: Sun, 13 Dec 2020 08:46:23 +0800 +commit 10711e33b5a3d454ecea160036155f5044dc83db +Author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> +Date: Mon, 27 Sep 2021 15:52:13 +0000 - anonymous namespace for integrand, pass complex variables without copying + Automated fixes by clang-tidy - .../asian/analytic_cont_geom_av_price_heston.cpp | 77 +++++++++--------- - .../asian/analytic_cont_geom_av_price_heston.hpp | 28 +++---- - .../asian/analytic_discr_geom_av_price_heston.cpp | 91 +++++++++++----------- - .../asian/analytic_discr_geom_av_price_heston.hpp | 28 +++---- - 4 files changed, 117 insertions(+), 107 deletions(-) + ql/time/schedule.cpp | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) -commit 100a153b57da8829df0ed9db2a8e5d62804d394f -Author: RalfKonrad -Date: Sat, 12 Dec 2020 22:04:23 +0100 +commit 1e139fca7ea8692568758361856aef3d42c5773c +Author: Peter Caspers +Date: Mon, 27 Sep 2021 20:25:29 +0200 - The set-env command is disabled. + [touch:1189]fix - .github/workflows/cmake-win.yml | 2 ++ - 1 file changed, 2 insertions(+) + test-suite/basismodels.cpp | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) -commit e3d5dd895e1f3c9733ce47c4dffb5112d46a3e16 -Author: Luigi Ballabio -Date: Sat, 12 Dec 2020 17:58:23 +0100 +commit 349bed7d2c0ebbfc39ece181cf54ae4e600b7a05 +Author: Peter Caspers +Date: Mon, 27 Sep 2021 20:01:05 +0200 - Update distro for gcc 9 CI job + [touch:1189]flipped these around before - .github/workflows/linux.yml | 4 ++-- + test-suite/swap.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -commit 9dcb5ba3ec8cbc4ed8b1bfcfaf642fc0a32322aa +commit 61695200ad74c432d3a94770f4af925087cf784e +Merge: ee19da333 4578bdccc Author: Luigi Ballabio -Date: Sat, 12 Dec 2020 17:31:22 +0100 - - Document fixed Boost version in workflow. +Date: Mon, 27 Sep 2021 14:22:32 +0200 - .github/workflows/linux.yml | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) + Merge pull request #1172. + + Adjust effective and termination dates for ThirdWednesday Rule -commit 7cb2f8e568e67f2e29d4c6963e99f54851a4c562 -Author: jackgillett101 -Date: Sat, 12 Dec 2020 07:44:18 +0800 +commit 37d17b0dd3bfb6af798b196eeae3a920977342bc +Author: Peter Caspers +Date: Mon, 27 Sep 2021 12:34:04 +0200 - Integral limit should be Real, not Size + [touch:1189]typo - ql/experimental/asian/analytic_discr_geom_av_price_heston.hpp | 2 +- + ql/cashflows/iborcoupon.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -commit 3788178a1ff1c5fd3b198806d3487bac84e76a71 -Merge: 516a89ed8 c7af72b92 +commit 4578bdccc0a60e38e7a001254b5e0318d56cc255 Author: Luigi Ballabio -Date: Fri, 11 Dec 2020 22:19:41 +0100 +Date: Mon, 27 Sep 2021 11:52:15 +0200 - Merge pull request #962. - - Update China holiday for the year 2021 + Output new rule to iostreams -commit c7af72b92cf5db1558397d2668593401ecea6578 -Author: wegamekinglc -Date: Fri, 11 Dec 2020 17:05:58 +0800 + ql/time/dategenerationrule.cpp | 2 ++ + ql/time/dategenerationrule.hpp | 6 +++--- + 2 files changed, 5 insertions(+), 3 deletions(-) - update china calendar for the year 2021 +commit 03d59ca9a92c0f49e033f192df47d5ff4f7282ef +Author: Peter Caspers +Date: Mon, 27 Sep 2021 11:46:51 +0200 - ql/time/calendars/china.cpp | 17 ++++++++++++++++- - test-suite/calendars.cpp | 34 ++++++++++++++++++++++++++++++++-- - 2 files changed, 48 insertions(+), 3 deletions(-) + [touch:1189]exposure additional constructors -commit a10f94a5258aa3703bc2e1ef28daa9f7c5ff056d -Merge: 7239e1b1e 516a89ed8 -Author: Cheng Li -Date: Fri, 11 Dec 2020 11:43:49 +0800 + ql/cashflows/iborcoupon.cpp | 20 ++++++++++++++++++++ + ql/cashflows/iborcoupon.hpp | 7 +++++-- + 2 files changed, 25 insertions(+), 2 deletions(-) - Merge pull request #11 from lballabio/master - - merge from Luigi's upstream +commit aaf6b61eb58240b6d6069ef2031c0d48cace4240 +Author: Peter Caspers +Date: Mon, 27 Sep 2021 10:27:50 +0200 -commit b66fcd647a854a0cf68de17391ad9fdace425edf -Merge: a0599d2b0 b22008e24 -Author: jackgillett101 -Date: Fri, 11 Dec 2020 05:32:30 +0800 + [touch:1189]ext instead of boost again + + ql/cashflows/iborcoupon.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit cd8efc2127b41b622088fe1860239bf1fdfe3a5d +Author: Peter Caspers +Date: Mon, 27 Sep 2021 10:20:14 +0200 + + [touch:1189]introduce global setting that can be overridden at the relevant places + + ql/cashflows/couponpricer.cpp | 58 ++++++++++++++++----------------- + ql/cashflows/couponpricer.hpp | 37 ++++++++------------- + ql/cashflows/iborcoupon.cpp | 23 +++++++------ + ql/cashflows/iborcoupon.hpp | 12 ++++--- + ql/instruments/makevanillaswap.cpp | 22 ++++++------- + ql/instruments/makevanillaswap.hpp | 2 ++ + ql/instruments/vanillaswap.cpp | 6 ++-- + ql/instruments/vanillaswap.hpp | 3 +- + ql/settings.cpp | 8 ++--- + ql/settings.hpp | 21 ++++++++++++ + ql/termstructures/yield/ratehelpers.cpp | 26 ++++++++++----- + ql/termstructures/yield/ratehelpers.hpp | 13 +++++--- + 12 files changed, 131 insertions(+), 100 deletions(-) + +commit 2c910ab2a5caa4e82365930fef55d8a48109710f +Author: Peter Caspers +Date: Mon, 27 Sep 2021 09:44:29 +0200 - Merge pull request #18 from jackgillett101/clang-tidy-fixes-refs/heads/analytic_discrete_geometric_heston_2 + Revert "[touch:1189]init pricer when set" - Automated fixes by clang-tidy + This reverts commit d356ffb0a344f68ea5944ca60fb7e87becef00f1. -commit a0599d2b0d767ff28da315ba3981769e2454ed66 -Author: jackgillett101 -Date: Fri, 11 Dec 2020 05:31:30 +0800 + ql/cashflows/floatingratecoupon.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) - Adding new pricer file to CMakeLists.txt +commit d356ffb0a344f68ea5944ca60fb7e87becef00f1 +Author: Peter Caspers +Date: Mon, 27 Sep 2021 08:52:26 +0200 - ql/CMakeLists.txt | 2 ++ - 1 file changed, 2 insertions(+) + [touch:1189]init pricer when set -commit b22008e2455291cb997c042ddf667e7ee5fe2361 -Author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> -Date: Thu, 10 Dec 2020 14:42:51 +0000 + ql/cashflows/floatingratecoupon.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) - Automated fixes by clang-tidy +commit 0f6a81c0b5ae20cd4152649ec0d1d2a042c0f08f +Author: Peter Caspers +Date: Sun, 26 Sep 2021 18:05:32 +0200 - test-suite/asianoptions.cpp | 3 ++- - 1 file changed, 2 insertions(+), 1 deletion(-) + [touch:1189]ext instead of boost -commit c804ba34d5aeb1d1832e441cdd8dab1cc46358bc -Author: jackgillett101 -Date: Thu, 10 Dec 2020 21:25:06 +0800 + ql/cashflows/iborcoupon.cpp | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) - Initial commit for Analytic Discrete Geometric Average Asian pricer +commit 201ddd406e9eb36eb0463c06ccb91a9b8f50801c +Author: Peter Caspers +Date: Sun, 26 Sep 2021 17:56:44 +0200 - QuantLib.vcxproj | 2 + - QuantLib.vcxproj.filters | 8 +- - ql/experimental/asian/Makefile.am | 6 +- - ql/experimental/asian/all.hpp | 1 + - .../asian/analytic_discr_geom_av_price_heston.cpp | 285 +++++++++++++++++++++ - .../asian/analytic_discr_geom_av_price_heston.hpp | 137 ++++++++++ - test-suite/asianoptions.cpp | 107 ++++++-- - test-suite/asianoptions.hpp | 1 + - 8 files changed, 517 insertions(+), 30 deletions(-) + [touch:1189]unused -commit 516a89ed8bcb35a7397c11d7188cd5e1e00463d0 -Author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> -Date: Tue, 8 Dec 2020 00:13:00 +0000 + ql/cashflows/couponpricer.cpp | 2 -- + 1 file changed, 2 deletions(-) - Automated fixes by clang-tidy +commit 2201d3120dce4eb860f34e6b6e65f8745f060a0a +Author: Peter Caspers +Date: Sun, 26 Sep 2021 17:02:46 +0200 - ql/pricingengines/asian/mc_discr_geom_av_price_heston.cpp | 12 ++++++------ - ql/pricingengines/asian/mc_discr_geom_av_price_heston.hpp | 2 +- - 2 files changed, 7 insertions(+), 7 deletions(-) + [touch:1189]reorder -commit 138a3b711f667ceba68c64dd9e00bcf7934be42b -Merge: 59594de12 ec0d9a508 -Author: Luigi Ballabio -Date: Mon, 7 Dec 2020 23:28:28 +0100 + ql/cashflows/couponpricer.hpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) - Merge pull request #952. - - Modified ExponentialSplinesFitting to handle variable coeffs and fixed kappa +commit 35e43a265056ab2cdacb5dfdde00b4d66b89a700 +Author: Peter Caspers +Date: Sun, 26 Sep 2021 16:53:36 +0200 + + [touch:1189]update test suite and examples + + Examples/CDS/CDS.cpp | 8 ------- + test-suite/assetswap.cpp | 44 +++++++++++++++++++++----------------- + test-suite/basismodels.cpp | 7 +++--- + test-suite/bermudanswaption.cpp | 42 ++++++++++++++++++------------------ + test-suite/bonds.cpp | 44 +++++++++++++++++++++----------------- + test-suite/capfloor.cpp | 16 +++++++------- + test-suite/cashflows.cpp | 6 +++--- + test-suite/catbonds.cpp | 33 +++++++++++++++------------- + test-suite/creditdefaultswap.cpp | 12 +++++------ + test-suite/inflationcpiswap.cpp | 11 +++++----- + test-suite/libormarketmodel.cpp | 16 ++++++++------ + test-suite/optionletstripper.cpp | 16 ++++++++------ + test-suite/piecewiseyieldcurve.cpp | 4 ++-- + test-suite/shortratemodels.cpp | 31 +++++++++++++++------------ + test-suite/swap.cpp | 11 +++++----- + test-suite/swaption.cpp | 11 +++++----- + 16 files changed, 163 insertions(+), 149 deletions(-) + +commit c6dc7ef902b6f6e8c905e4e7fb2e742566bd8ec4 +Author: Peter Caspers +Date: Sun, 26 Sep 2021 16:53:08 +0200 + + [touch:1189]move par coupon logic to coupon pricer (draft, untested) + + ql/cashflows/couponpricer.cpp | 100 ++++++++++++++++++++++++++++++++---------- + ql/cashflows/couponpricer.hpp | 48 +++++++++++++++----- + ql/cashflows/iborcoupon.cpp | 81 ++++++++++++---------------------- + ql/cashflows/iborcoupon.hpp | 35 +++++---------- + 4 files changed, 151 insertions(+), 113 deletions(-) + +commit 778dcbdd87cb2d883f5aa7ae0ed0ba49c8d5d6d8 +Author: lewwe +Date: Sun, 26 Sep 2021 11:10:27 +0800 -commit ec0d9a5081221b5dac5a8893d4b14f4a6415c518 -Author: Luigi Ballabio -Date: Mon, 7 Dec 2020 14:48:02 +0100 + Dummy Commit - Update docs. + ql/time/dategenerationrule.hpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 6cfd3df831dce3b3f30bbf0143fd37515387026d +Author: lewwe +Date: Sat, 25 Sep 2021 10:15:48 +0800 + + Dummy Commit - ql/termstructures/yield/nonlinearfittingmethods.hpp | 10 +++------- - 1 file changed, 3 insertions(+), 7 deletions(-) + ql/time/dategenerationrule.hpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) -commit fdc2927a376bb796caa914d00042619932af2df9 +commit 54e2cccebb427b501a12fbae9ed73107de173dc3 Author: Luigi Ballabio -Date: Mon, 7 Dec 2020 14:47:50 +0100 +Date: Fri, 24 Sep 2021 22:45:23 +0200 - Use Null + Better type specification - ql/termstructures/yield/nonlinearfittingmethods.cpp | 4 ++-- - ql/termstructures/yield/nonlinearfittingmethods.hpp | 4 ++-- - 2 files changed, 4 insertions(+), 4 deletions(-) + ql/money.cpp | 2 +- + ql/money.hpp | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) -commit 6bf9efa1acb4a67201a59fc680d4b62cfe2b16b2 +commit c8703a5d294fc5bff3b5ec45c9ba683a940d7ea0 Author: Luigi Ballabio -Date: Mon, 7 Dec 2020 14:47:15 +0100 +Date: Fri, 24 Sep 2021 18:59:11 +0200 - Add requirements + Disable copy/move in Singleton - ql/termstructures/yield/nonlinearfittingmethods.cpp | 9 +++------ - 1 file changed, 3 insertions(+), 6 deletions(-) + ql/cashflows/iborcoupon.hpp | 5 ----- + ql/money.hpp | 5 ----- + ql/patterns/singleton.hpp | 11 ++++++++--- + 3 files changed, 8 insertions(+), 13 deletions(-) -commit 59594de1204ee11f23f3dc0a171ff69ccba163a3 -Merge: 2dc9b7f6a 42b4ca169 +commit 7691402d08a9a2649946b2b9e1bc1e311bb4356e Author: Luigi Ballabio -Date: Mon, 7 Dec 2020 14:34:17 +0100 +Date: Fri, 24 Sep 2021 17:36:43 +0200 - Merge pull request #957. - - Adding a MC Heston pricer for discrete geometric asian options + Avoid using inspector as setter + + ql/cashflows/iborcoupon.cpp | 6 +----- + ql/cashflows/iborcoupon.hpp | 3 +-- + 2 files changed, 2 insertions(+), 7 deletions(-) -commit 2dc9b7f6abac35afe9e19fd23ecef11a7c253d64 -Merge: d57170996 fbd9acf16 +commit 238c7a6498811e30f46bc6b7afe6828d6d84f06d Author: Luigi Ballabio -Date: Mon, 7 Dec 2020 14:32:38 +0100 +Date: Fri, 24 Sep 2021 17:27:26 +0200 - Merge pull request #956. - - fix monthly SOFR future convention + Add old IborCoupon methods to deprecated list in docs -commit 42b4ca1699817f0b23fca6f4416436385d2f7819 -Author: jackgillett101 -Date: Mon, 7 Dec 2020 07:37:54 +0800 + ql/cashflows/iborcoupon.hpp | 16 +++++++++++----- + 1 file changed, 11 insertions(+), 5 deletions(-) + +commit d02b9f6da00db2da9362c0e5e150401400ec0475 +Author: Luigi Ballabio +Date: Fri, 24 Sep 2021 17:23:58 +0200 - Updating copyright + Add backward compatibility for Money - ql/pricingengines/asian/mc_discr_geom_av_price_heston.cpp | 2 ++ - ql/pricingengines/asian/mc_discr_geom_av_price_heston.hpp | 2 ++ - 2 files changed, 4 insertions(+) + ql/money.cpp | 19 +++++++++++++++++++ + ql/money.hpp | 27 +++++++++++++++++++++++++-- + 2 files changed, 44 insertions(+), 2 deletions(-) -commit 1af8c820a0b7e5cabf006076eca3b1bd6fac948a -Author: jackgillett101 -Date: Sun, 6 Dec 2020 08:20:19 +0800 +commit 7e06a95b78d81d7bfbc9a39486302d162f345932 +Author: lewwe +Date: Fri, 24 Sep 2021 17:15:25 +0800 - Adding a MC Heston pricer for discrete gemoetric asian options + Add new enum - QuantLib.vcxproj | 2 + - QuantLib.vcxproj.filters | 12 +- - ql/CMakeLists.txt | 2 + - ql/pricingengines/asian/Makefile.am | 4 +- - ql/pricingengines/asian/all.hpp | 1 + - .../asian/mc_discr_geom_av_price_heston.cpp | 60 +++++ - .../asian/mc_discr_geom_av_price_heston.hpp | 254 +++++++++++++++++++++ - test-suite/asianoptions.cpp | 91 ++++++++ - test-suite/asianoptions.hpp | 1 + - 9 files changed, 420 insertions(+), 7 deletions(-) + ql/time/dategenerationrule.hpp | 8 ++++++-- + ql/time/schedule.cpp | 6 +++++- + test-suite/swap.cpp | 2 +- + 3 files changed, 12 insertions(+), 4 deletions(-) -commit d571709967c0c3ab1ebbf99633d503b4fdc0d9e9 -Merge: 1e4bcc70e afec307fa +commit ee19da333d46b978f8918b8851d4287723f5b1e6 +Merge: 6f4126f26 973720c22 Author: Luigi Ballabio -Date: Sat, 5 Dec 2020 22:00:54 +0100 +Date: Thu, 23 Sep 2021 12:20:29 +0200 - Merge pull request #955. + Merge pull request #1161. - Adding an experimental analytic Heston continuous geometric pricer + Marked-to-market cross currency basis swap rate helper -commit afec307fa166403a46b1b2a86f9e43de5f52847c +commit 973720c22877a0bfec5219d6b6741687f477453c Author: Luigi Ballabio -Date: Sat, 5 Dec 2020 18:30:51 +0100 +Date: Wed, 22 Sep 2021 16:29:28 +0200 - Avoid empty lines + Backward-compatible names - QuantLib.vcxproj | 1 - - QuantLib.vcxproj.filters | 1 - - 2 files changed, 2 deletions(-) + .../termstructures/crosscurrencyratehelpers.cpp | 54 +++++++++++----------- + .../termstructures/crosscurrencyratehelpers.hpp | 51 +++++++++++--------- + 2 files changed, 56 insertions(+), 49 deletions(-) -commit cd4460e93d050b16d1522236b4c475a3a86bfefa -Author: jackgillett101 -Date: Sat, 5 Dec 2020 22:02:22 +0800 +commit 5135a7d90ca8275f7f0499d9c73475e5050eead7 +Author: Marcin Rybacki +Date: Sun, 19 Sep 2021 13:44:43 +0200 - Fixing a Visual Studio int -> double cast warning + Implemented PR feedback. - ql/experimental/asian/analytic_cont_geom_av_price_heston.cpp | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) + .../termstructures/crosscurrencyratehelpers.cpp | 142 ++++++++------------- + 1 file changed, 55 insertions(+), 87 deletions(-) -commit 073a400687a25d805c61940011b308b22d7478ad -Author: jackgillett101 -Date: Sat, 5 Dec 2020 20:30:26 +0800 +commit 7be95df87e55e49676790d42ef30f26565adb8af +Author: Marcin Rybacki +Date: Sat, 18 Sep 2021 23:15:37 +0200 - Update QuantLib.vcxproj.filters - - Co-authored-by: Luigi Ballabio + Implemented PR feedback. - QuantLib.vcxproj.filters | 7 ++++--- - 1 file changed, 4 insertions(+), 3 deletions(-) + .../termstructures/crosscurrencyratehelpers.cpp | 72 ++++++++++++------ + .../termstructures/crosscurrencyratehelpers.hpp | 87 ++++++++++++++-------- + test-suite/crosscurrencyratehelpers.cpp | 2 +- + 3 files changed, 106 insertions(+), 55 deletions(-) -commit 4cc405b947fe52833bac831ee2625b5ad491bbd3 -Author: jackgillett101 -Date: Sat, 5 Dec 2020 20:30:15 +0800 +commit 23ef2caefce9a5946bf1a5274791791fc005e94c +Author: Philip Kovacs <30226827+pkovacs@users.noreply.github.com> +Date: Fri, 17 Sep 2021 21:37:44 -0400 - Update QuantLib.vcxproj - - Co-authored-by: Luigi Ballabio + adjust test suite to use IborCoupon::Settings - QuantLib.vcxproj | 5 +++-- - 1 file changed, 3 insertions(+), 2 deletions(-) + Examples/CDS/CDS.cpp | 7 ++++--- + ql/pricingengines/credit/isdacdsengine.hpp | 2 +- + ql/userconfig.hpp | 2 +- + test-suite/assetswap.cpp | 16 ++++++++++++---- + test-suite/basismodels.cpp | 3 ++- + test-suite/bermudanswaption.cpp | 10 +++++++--- + test-suite/bonds.cpp | 10 ++++++---- + test-suite/capfloor.cpp | 8 ++++++-- + test-suite/cashflows.cpp | 3 ++- + test-suite/catbonds.cpp | 8 +++++--- + test-suite/creditdefaultswap.cpp | 4 +++- + test-suite/inflationcpiswap.cpp | 4 +++- + test-suite/libormarketmodel.cpp | 8 ++++++-- + test-suite/optionletstripper.cpp | 6 ++++-- + test-suite/piecewiseyieldcurve.cpp | 4 +++- + test-suite/shortratemodels.cpp | 16 ++++++++++++---- + test-suite/swap.cpp | 4 +++- + test-suite/swaption.cpp | 4 +++- + 18 files changed, 83 insertions(+), 36 deletions(-) -commit 1a951c51201771069786eb584f5fb02e0b797f42 -Merge: 0c20cde20 5f2048a12 -Author: jackgillett101 -Date: Sat, 5 Dec 2020 19:38:30 +0800 +commit 93b290a2a69398076bd315757ab42925593956db +Author: Philip Kovacs <30226827+pkovacs@users.noreply.github.com> +Date: Fri, 17 Sep 2021 20:55:27 -0400 - Merge pull request #13 from jackgillett101/clang-tidy-fixes-refs/heads/analytic_continuous_geometric_heston_2 - - Automated fixes by clang-tidy + adjust test suite to use Money::Settings -commit 5f2048a129f47ac4a5004e87b7c47fd5e1c131e2 -Author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> -Date: Sat, 5 Dec 2020 06:34:20 +0000 + test-suite/exchangerate.cpp | 10 +++++----- + test-suite/money.cpp | 16 +++++++++------- + 2 files changed, 14 insertions(+), 12 deletions(-) - Automated fixes by clang-tidy +commit 2dfd62d372ccd6ac0fa3581a4c7a502e11e0d0d6 +Author: Philip Kovacs <30226827+pkovacs@users.noreply.github.com> +Date: Fri, 17 Sep 2021 20:43:59 -0400 - ql/experimental/asian/analytic_cont_geom_av_price_heston.cpp | 9 ++++----- - 1 file changed, 4 insertions(+), 5 deletions(-) + add Money::Settings to fix data race -commit fbd9acf16fe8fadbdfba394f12258359fae55794 -Author: tani3010 -Date: Sat, 5 Dec 2020 00:09:41 -0500 + ql/money.cpp | 80 ++++++++++++++++++++++++++++++++++++++++++++---------------- + ql/money.hpp | 27 ++++++++++++++++++-- + 2 files changed, 84 insertions(+), 23 deletions(-) - fix monthly SOFR future convention - - Signed-off-by: tani3010 +commit e0182794db3d2a33be41174dcb21444d3db3bcda +Author: Philip Kovacs <30226827+pkovacs@users.noreply.github.com> +Date: Fri, 17 Sep 2021 19:59:01 -0400 - ql/experimental/futures/overnightindexfutureratehelper.cpp | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) + add IborCoupon:Settings to fix data race -commit 38da83ce94446301b8aafce5587399bf539417c6 -Author: tani3010 -Date: Fri, 4 Dec 2020 23:40:12 -0500 + ql/cashflows/iborcoupon.cpp | 53 +++++++++++++++++++++++++++++---------------- + ql/cashflows/iborcoupon.hpp | 48 +++++++++++++++++++++++++++------------- + 2 files changed, 67 insertions(+), 34 deletions(-) - fix monthly SOFR future convention - - Signed-off-by: tani3010 +commit 6f4126f2641ff20cda34c0117289dcb497a2aca3 +Author: Luigi Ballabio +Date: Thu, 16 Sep 2021 11:53:45 +0200 - .../futures/overnightindexfutureratehelper.cpp | 23 +++++++++++++++------- - test-suite/sofrfutures.cpp | 13 +++++++++++- - 2 files changed, 28 insertions(+), 8 deletions(-) + Update Boost download link in CI build -commit 0c20cde20119faafaace33cbdee1bf1067f853f3 -Author: jackgillett101 -Date: Sat, 5 Dec 2020 12:08:33 +0800 + .github/workflows/cmake.yml | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) - Adding tests for pricer +commit 5dfb69c2f7c2f4c2db656a63c69492952eb0f347 +Merge: 8d47d8dd7 7294f5751 +Author: Luigi Ballabio +Date: Thu, 16 Sep 2021 11:46:02 +0200 - test-suite/asianoptions.cpp | 172 ++++++++++++++++++++++++++++++++++++++++++++ - test-suite/asianoptions.hpp | 1 + - 2 files changed, 173 insertions(+) + Merge pull request #1183 + + The new CMake build system -commit 6204203a29c42909163ca4680a8c503f1ab00bb1 -Author: jackgillett101 -Date: Sat, 5 Dec 2020 11:47:28 +0800 +commit 7294f5751d6c4876151443801e86d928e58b7abc +Author: Philip Kovacs <30226827+pkovacs@users.noreply.github.com> +Date: Wed, 15 Sep 2021 19:54:34 -0400 - Codacy code cleanliness adjustments + QL_ENABLE_SESSIONS requires Boost::threads - ql/experimental/asian/analytic_cont_geom_av_price_heston.cpp | 6 ++---- - ql/experimental/asian/analytic_cont_geom_av_price_heston.hpp | 2 +- - 2 files changed, 3 insertions(+), 5 deletions(-) + CMakeLists.txt | 5 ----- + Examples/CMakeLists.txt | 3 ++- + test-suite/CMakeLists.txt | 7 ++++--- + 3 files changed, 6 insertions(+), 9 deletions(-) -commit 01471ea7deab2a22f01c77cc9102bcc958764661 -Author: jackgillett101 -Date: Sat, 5 Dec 2020 11:26:51 +0800 +commit 61ceb9906d659d659cebcf473fc6115ac110edb6 +Author: Philip Kovacs <30226827+pkovacs@users.noreply.github.com> +Date: Wed, 15 Sep 2021 19:32:12 -0400 - Adding an experimental analytic Heston continuous geometric pricer + Revert "Remove unneeded requirement" which broke program links + + This reverts commit bbf8a27c63efbcb65b7793ad89e979fd69cd4f7e. - QuantLib.vcxproj | 3 + - QuantLib.vcxproj.filters | 9 + - configure.ac | 1 + - ql/CMakeLists.txt | 2 + - ql/experimental/Makefile.am | 5 +- - ql/experimental/all.hpp | 1 + - ql/experimental/asian/Makefile.am | 45 ++++ - ql/experimental/asian/all.hpp | 5 + - .../asian/analytic_cont_geom_av_price_heston.cpp | 284 +++++++++++++++++++++ - .../asian/analytic_cont_geom_av_price_heston.hpp | 127 +++++++++ - 10 files changed, 480 insertions(+), 2 deletions(-) + CMakeLists.txt | 5 +++++ + 1 file changed, 5 insertions(+) -commit 1e4bcc70ef859d6d2ed3095c7af7bd179ed546cc -Author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> -Date: Wed, 2 Dec 2020 10:58:10 +0000 +commit bbf8a27c63efbcb65b7793ad89e979fd69cd4f7e +Author: Luigi Ballabio +Date: Wed, 15 Sep 2021 18:30:11 +0200 - Automated fixes by clang-tidy + Remove unneeded requirement - ql/pricingengines/asian/mc_discr_arith_av_price_heston.cpp | 12 ++++++------ - ql/pricingengines/asian/mc_discr_arith_av_price_heston.hpp | 2 +- - 2 files changed, 7 insertions(+), 7 deletions(-) + CMakeLists.txt | 5 ----- + 1 file changed, 5 deletions(-) -commit 34d1e52e6e14b213b52f6259f2b6a226a47ea11f -Merge: 11e1d6f12 e97d09355 +commit 45222087571eb1e6679a130d61a0fee323baa560 Author: Luigi Ballabio -Date: Wed, 2 Dec 2020 10:21:48 +0100 +Date: Wed, 15 Sep 2021 18:28:10 +0200 - Merge pull request #951. - - Forcing specification of timeSteps for MC Arithmetic Asian Heston Pricer + Add cmake builds with custom options to CI workflow -commit e97d09355b315d95f7d2ae83618dc5af34965695 -Author: jackgillett101 -Date: Tue, 1 Dec 2020 22:06:33 +0800 + .github/workflows/cmake.yml | 56 ++++++++++++++++++++++++++++++++++++++++++--- + 1 file changed, 53 insertions(+), 3 deletions(-) - Defaulting the timeSteps argument for Arithmetic Asians +commit a50b4249d31cca14fd0034f851e7fd67fe5820d8 +Author: Luigi Ballabio +Date: Wed, 15 Sep 2021 18:12:59 +0200 - .../asian/mc_discr_arith_av_price_heston.hpp | 84 +++++++++++----------- - .../asian/mcdiscreteasianenginebase.hpp | 4 ++ - test-suite/asianoptions.cpp | 1 - - 3 files changed, 45 insertions(+), 44 deletions(-) + Restore filelist check on CMakeLists -commit 9fac8bfc12257bea12065e18cb3163b4b8c7b449 -Author: DS-London -Date: Tue, 1 Dec 2020 11:54:05 +0000 + ql/CMakeLists.txt | 5 +++++ + tools/check_filelists.sh | 4 ++-- + tools/check_filelists_diffs.py | 2 +- + 3 files changed, 8 insertions(+), 3 deletions(-) - Modified ExponentialSplinesFitting to handle a variable number of coefficients and a fixed value for kappa. Added new fitting method to FittedBondCurve example. +commit 8b6a43603f3fcf154590e363c44e3a3a2edb2390 +Author: Philip Kovacs <30226827+pkovacs@users.noreply.github.com> +Date: Tue, 14 Sep 2021 02:30:39 -0400 - Examples/FittedBondCurve/FittedBondCurve.cpp | 58 +++++++++++++++++++--- - .../yield/nonlinearfittingmethods.cpp | 52 ++++++++++++++----- - .../yield/nonlinearfittingmethods.hpp | 23 ++++++++- - 3 files changed, 111 insertions(+), 22 deletions(-) + add new cmake files to autotools dist -commit 11e1d6f12ce2e56ebddcd5b6e70bce733238fd35 -Merge: 43c4e15f4 1bb9e35de -Author: Luigi Ballabio -Date: Tue, 1 Dec 2020 12:18:54 +0100 + Makefile.am | 2 ++ + ql/Makefile.am | 5 ++++- + 2 files changed, 6 insertions(+), 1 deletion(-) - Merge pull request #950. - - Expose number of swap legs +commit a3ae22b072047b847fbc95b12c2f29b8e0fadc25 +Author: Philip Kovacs <30226827+pkovacs@users.noreply.github.com> +Date: Tue, 14 Sep 2021 01:34:51 -0400 -commit 63a816bb3b5453080b33069b1d26f085afd640c3 -Author: jackgillett101 -Date: Mon, 30 Nov 2020 23:27:39 +0800 + generate ql/quantlib.hpp - Forcing specification of timeSteps for MC Arithmetic Asian Heston Pricer + cmake/GenerateHeaders.cmake | 34 ++++++++++++++++++++++++++++++++++ + ql/CMakeLists.txt | 38 +++++++++++++++++++------------------- + 2 files changed, 53 insertions(+), 19 deletions(-) - .../asian/mc_discr_arith_av_price_heston.cpp | 18 +++---- - .../asian/mc_discr_arith_av_price_heston.hpp | 59 ++++++++++++++++++++-- - .../asian/mcdiscreteasianenginebase.hpp | 29 ++++++++--- - test-suite/asianoptions.cpp | 1 + - 4 files changed, 86 insertions(+), 21 deletions(-) +commit 990cc881a539d2f5c0a83b7774be7cfd836f64ba +Author: Philip Kovacs <30226827+pkovacs@users.noreply.github.com> +Date: Mon, 13 Sep 2021 16:30:51 -0400 -commit 1bb9e35de043d70510776bfd74d8189a6ed0aecd -Author: Francois Botha -Date: Mon, 30 Nov 2020 15:57:34 +0200 + shared/static defaults for project and boost libs - Expose number of swap legs + CMakeLists.txt | 14 ++++++++++++-- + 1 file changed, 12 insertions(+), 2 deletions(-) - ql/instruments/swap.cpp | 1 + - ql/instruments/swap.hpp | 1 + - test-suite/swap.cpp | 6 ++++++ - 3 files changed, 8 insertions(+) +commit a3aa07ab03b9403e643e3e50c0939554d43d1f8c +Author: Philip Kovacs <30226827+pkovacs@users.noreply.github.com> +Date: Mon, 13 Sep 2021 16:25:22 -0400 -commit 43c4e15f46dc7a8713972d8bd523545a600e1370 -Merge: c4a1749bc 6f1dfbb1a -Author: Luigi Ballabio -Date: Sun, 29 Nov 2020 17:35:43 +0100 + configure qldefines for QL_HAVE_CONFIG_H - Merge pull request #948. - - Adding a vanilla control variate to the Heston forward start MC pricer + CMakeLists.txt | 3 +- + ql/CMakeLists.txt | 2 +- + ql/qldefines.hpp.cfg | 228 +++++++++++++++++++++++++++++++++++++++++++++++++++ + 3 files changed, 231 insertions(+), 2 deletions(-) -commit 6f1dfbb1a5a0be42968ca20950a809f4cadc5d32 -Author: jackgillett101 -Date: Sun, 29 Nov 2020 21:06:03 +0800 +commit 5912e0bf4c701b27170970c41675e64e184b5c5b +Author: Philip Kovacs <30226827+pkovacs@users.noreply.github.com> +Date: Sun, 12 Sep 2021 19:28:48 -0400 - Adding reference to pull request where some trade-offs for control variate use are discussed + adjust check_filelists workflow for new cmake system - ql/pricingengines/forward/mcforwardeuropeanhestonengine.hpp | 8 +++++++- - 1 file changed, 7 insertions(+), 1 deletion(-) + Makefile.am | 1 - + tools/check_filelists.sh | 5 +++-- + tools/check_filelists_diffs.py | 2 +- + 3 files changed, 4 insertions(+), 4 deletions(-) -commit c4a1749bc829e7deecce1bf805c2920b0663d670 -Author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> -Date: Sun, 29 Nov 2020 09:36:42 +0000 +commit 2ef71fc8ee169dee7472ac1022d1e58f9391b0c3 +Author: Philip Kovacs <30226827+pkovacs@users.noreply.github.com> +Date: Sat, 11 Sep 2021 21:44:28 -0400 - Update copyright list in license + Revert "use boost layout convention of platform at the end" + + This reverts commit 82a596728a142ea7d49de7fb1576cdd5e4db9d5a. - LICENSE.TXT | 3 ++- - 1 file changed, 2 insertions(+), 1 deletion(-) + ql/auto_link.hpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) -commit b8f5cbd5620fbae9e2e986284f1ed8b2e961a7ad -Merge: 43272b2b6 65d20b52d -Author: Luigi Ballabio -Date: Sun, 29 Nov 2020 09:52:11 +0100 +commit 3b762463fb38ce08a291be281445139062223d5b +Author: Philip Kovacs <30226827+pkovacs@users.noreply.github.com> +Date: Sat, 11 Sep 2021 20:21:51 -0400 - Merge pull request #947. - - Fix unregisterWith call on empty observer + adjust msvc config to use auto link consistently -commit bcbceb3bee31f38bb5169a9f44d1bd97c05456ab -Author: jackgillett101 -Date: Sun, 29 Nov 2020 16:42:59 +0800 + ql/config.msvc.hpp | 5 ----- + 1 file changed, 5 deletions(-) - Correcting ordering of parameters in class initialisation +commit d0c638d5cb7864b64b12a95514de14568f905dbb +Author: Philip Kovacs <30226827+pkovacs@users.noreply.github.com> +Date: Fri, 10 Sep 2021 21:50:44 -0400 - ql/pricingengines/forward/mcforwardeuropeanhestonengine.hpp | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) + generate all.hpp files using cmake -commit c777a7aa1152413300e19d26c6416517f9e06948 -Author: jackgillett101 -Date: Sun, 29 Nov 2020 16:15:45 +0800 + cmake/GenerateHeaders.cmake | 42 +++++++++++++ + ql/CMakeLists.txt | 140 +++++++++++++++++++++++++++++++++++++++++++- + 2 files changed, 179 insertions(+), 3 deletions(-) - Adding a vanilla control variate to the Heston forward start MC pricer +commit 82a596728a142ea7d49de7fb1576cdd5e4db9d5a +Author: Philip Kovacs <30226827+pkovacs@users.noreply.github.com> +Date: Thu, 9 Sep 2021 23:25:09 -0400 - .../forward/mcforwardeuropeanhestonengine.hpp | 80 ++++++++++++++++++---- - .../forward/mcforwardvanillaengine.hpp | 45 ++++++++++-- - test-suite/forwardoption.cpp | 19 ++++- - 3 files changed, 125 insertions(+), 19 deletions(-) + use boost layout convention of platform at the end -commit 65d20b52ded92d8e348d46ff7561ceca5c6dfab3 -Author: Luigi Ballabio -Date: Sat, 28 Nov 2020 21:07:33 +0100 + ql/auto_link.hpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) - Link required boost libs in CI build for thread-safe config +commit 0a355628b197b935cecbe0d768904f2d26a7a0bd +Author: Philip Kovacs <30226827+pkovacs@users.noreply.github.com> +Date: Thu, 9 Sep 2021 19:58:11 -0400 - .github/workflows/linux.yml | 3 ++- - 1 file changed, 2 insertions(+), 1 deletion(-) + disable DLL builds on MSVC -commit 43272b2b642b21f2ede332947433996051d75d93 -Merge: 176cce273 a9bd208ab -Author: Luigi Ballabio -Date: Sat, 28 Nov 2020 20:58:34 +0100 + cmake/Platform.cmake | 3 +++ + 1 file changed, 3 insertions(+) - Merge pull request #943. - - Adding an experimental analytic pricer for forward-start european options in Heston model +commit cf513d366a83ee15dcbc17c123e7326815428430 +Author: Philip Kovacs <30226827+pkovacs@users.noreply.github.com> +Date: Thu, 9 Sep 2021 19:47:04 -0400 -commit 74ed85f6d5f9c2810fb0de9184cd466cb249a70a -Author: Luigi Ballabio -Date: Sat, 28 Nov 2020 16:53:59 +0100 + .gitignore do not exclude cmake/*.cmake files - Add thread-set observer configuration to CI matrix. + .gitignore | 1 + + 1 file changed, 1 insertion(+) - .github/workflows/linux.yml | 8 ++++++++ - 1 file changed, 8 insertions(+) +commit fa25ee7635fa054ea5127edf4a4914f479f3353c +Author: Philip Kovacs <30226827+pkovacs@users.noreply.github.com> +Date: Thu, 9 Sep 2021 19:31:49 -0400 -commit 831faf3dc6916458e349d4bdd2ce9eaa43e6acd9 -Author: klausspanderen -Date: Sat, 28 Nov 2020 16:27:20 +0100 + add missing include for QL_ENABLE_SESSIONS - fixed #929 - Observer::unregisterWith(...) and QL_ENABLE_THREAD_SAFE_OBSERVER_PATTERN + ql/patterns/singleton.hpp | 1 + + 1 file changed, 1 insertion(+) - ql/patterns/observable.hpp | 3 +-- - test-suite/observable.cpp | 19 ++++++++++++++++++- - test-suite/observable.hpp | 1 + - 3 files changed, 20 insertions(+), 3 deletions(-) +commit 70604ee8eff0761695c058ce6063f6df28c93ae4 +Author: Philip Kovacs <30226827+pkovacs@users.noreply.github.com> +Date: Thu, 9 Sep 2021 19:29:42 -0400 + + remove QL_LIB_NAME references in test-suite + + test-suite/quantlibbenchmark.cpp | 4 ---- + test-suite/quantlibtestsuite.cpp | 4 ---- + 2 files changed, 8 deletions(-) + +commit a2055858c22a7611f9904aba42f444afa07eb607 +Author: Philip Kovacs <30226827+pkovacs@users.noreply.github.com> +Date: Thu, 9 Sep 2021 19:27:14 -0400 + + avoid ql/auto_link.hpp when using BOOST_ALL_NO_LIB + + Examples/BasketLosses/BasketLosses.cpp | 2 +- + Examples/BermudanSwaption/BermudanSwaption.cpp | 2 +- + Examples/Bonds/Bonds.cpp | 2 +- + Examples/CDS/CDS.cpp | 2 +- + Examples/CVAIRS/CVAIRS.cpp | 2 +- + Examples/CallableBonds/CallableBonds.cpp | 2 +- + Examples/ConvertibleBonds/ConvertibleBonds.cpp | 2 +- + Examples/DiscreteHedging/DiscreteHedging.cpp | 2 +- + Examples/EquityOption/EquityOption.cpp | 2 +- + Examples/FRA/FRA.cpp | 2 +- + Examples/FittedBondCurve/FittedBondCurve.cpp | 2 +- + Examples/Gaussian1dModels/Gaussian1dModels.cpp | 2 +- + Examples/GlobalOptimizer/GlobalOptimizer.cpp | 2 +- + Examples/LatentModel/LatentModel.cpp | 2 +- + Examples/MarketModels/MarketModels.cpp | 2 +- + .../MulticurveBootstrapping/MulticurveBootstrapping.cpp | 2 +- + Examples/MultidimIntegral/MultidimIntegral.cpp | 2 +- + Examples/Replication/Replication.cpp | 2 +- + Examples/Repo/Repo.cpp | 2 +- + test-suite/quantlibbenchmark.cpp | 2 +- + test-suite/quantlibtestsuite.cpp | 14 ++++++-------- + 21 files changed, 26 insertions(+), 28 deletions(-) + +commit 4bb8a519214cf3fba28769b3f6696e00c806b9b8 +Author: Philip Kovacs <30226827+pkovacs@users.noreply.github.com> +Date: Thu, 9 Sep 2021 19:13:05 -0400 + + rewrite cmake build system + + CMakeLists.txt | 216 ++++++++++++++++++------ + Examples/BasketLosses/CMakeLists.txt | 5 +- + Examples/BermudanSwaption/CMakeLists.txt | 6 +- + Examples/Bonds/CMakeLists.txt | 6 +- + Examples/CDS/CMakeLists.txt | 5 +- + Examples/CMakeLists.txt | 4 + + Examples/CVAIRS/CMakeLists.txt | 5 +- + Examples/CallableBonds/CMakeLists.txt | 6 +- + Examples/ConvertibleBonds/CMakeLists.txt | 5 +- + Examples/DiscreteHedging/CMakeLists.txt | 5 +- + Examples/EquityOption/CMakeLists.txt | 5 +- + Examples/FRA/CMakeLists.txt | 5 +- + Examples/FittedBondCurve/CMakeLists.txt | 5 +- + Examples/Gaussian1dModels/CMakeLists.txt | 5 +- + Examples/GlobalOptimizer/CMakeLists.txt | 5 +- + Examples/LatentModel/CMakeLists.txt | 5 +- + Examples/MarketModels/CMakeLists.txt | 5 +- + Examples/MulticurveBootstrapping/CMakeLists.txt | 5 +- + Examples/MultidimIntegral/CMakeLists.txt | 5 +- + Examples/Replication/CMakeLists.txt | 5 +- + Examples/Repo/CMakeLists.txt | 5 +- + cmake/Platform.cmake | 22 +++ + cmake/quantlib.cmake | 71 -------- + cmake/update_cmake_files.py | 38 ----- + ql/CMakeLists.txt | 184 +++++--------------- + ql/config.hpp.cfg | 46 +++++ + ql/version.hpp.cfg | 51 ++++++ + test-suite/CMakeLists.txt | 68 +++++--- + 28 files changed, 454 insertions(+), 344 deletions(-) + +commit 8d47d8dd74f585e7488ba336d838b564c51c7b5a +Merge: 9d90e8bcb fdfbe6636 +Author: Luigi Ballabio +Date: Tue, 7 Sep 2021 20:48:21 +0200 + + Merge pull request #1155. + + Add Chilean calendar + +commit fdfbe66364dcc406eccd247b1c0db38e86e3ec0a +Author: Luigi Ballabio +Date: Tue, 7 Sep 2021 17:53:14 +0200 + + Copyright attribution + + LICENSE.TXT | 1 + + ql/time/calendars/chile.cpp | 2 +- + ql/time/calendars/chile.hpp | 2 +- + 3 files changed, 3 insertions(+), 2 deletions(-) -commit a9bd208abeb1fd7debf39656deb225f3b61133c0 -Author: jackgillett101 -Date: Sat, 28 Nov 2020 23:02:11 +0800 +commit 9d90e8bcbee38b8d8e6749d7b803f5fc89ad6a44 +Author: Luigi Ballabio +Date: Tue, 7 Sep 2021 10:59:09 +0200 - Switching tests to use a fixed day, further tightening MC error bounds + Prevent brew failure during CI - test-suite/forwardoption.cpp | 25 ++++++++++--------------- - 1 file changed, 10 insertions(+), 15 deletions(-) + .github/workflows/doxygen.yml | 1 + + 1 file changed, 1 insertion(+) -commit 176cce273c92d96c13ecd0312e4d9b2418b5865e -Merge: 60afa3527 d4f1dbe5b +commit 6687233ecceb9d373adb1f7496014c60adc05bac Author: Luigi Ballabio -Date: Sat, 28 Nov 2020 14:20:54 +0100 +Date: Mon, 6 Sep 2021 18:56:45 +0200 - Merge pull request #945. - - Update Japan calendar + Update Boost path in VS2019 Appveyor build -commit d4f1dbe5b87120be9924485b33b4c4930a7e5b74 -Author: tani3010 -Date: Fri, 27 Nov 2020 22:38:04 -0500 + .appveyor/VS2019.props | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) - update Japan calender - - Signed-off-by: tani3010 +commit 90730ef2fb9f7afc3b159c3a1e4bda81cce50972 +Author: lewwe +Date: Mon, 30 Aug 2021 22:27:48 +0800 - ql/time/calendars/japan.cpp | 14 ++++++++++---- - 1 file changed, 10 insertions(+), 4 deletions(-) + Use boost error -commit 94be39583135894348fd73b2bb094ec6c585370c -Author: jackgillett101 -Date: Tue, 24 Nov 2020 09:52:30 +0800 + test-suite/swap.cpp | 14 +++++++++----- + 1 file changed, 9 insertions(+), 5 deletions(-) - Tightening tolerance, adding some paths, putting seed back into the rng - - I hadn't realised that even LD prices have some randomness if the seed is removed, which caused occasional failuers. +commit d88f1678b5e5c6913571e98745dc58da832cf5f1 +Author: lewwe +Date: Mon, 30 Aug 2021 20:55:16 +0800 - test-suite/forwardoption.cpp | 8 +++++--- - 1 file changed, 5 insertions(+), 3 deletions(-) + Adjust effective and termination dates for ThirdWednesday Rule -commit 45e86da3bb9a3aa16b254636e582a6a95744854a -Author: jackgillett101 -Date: Tue, 24 Nov 2020 09:02:21 +0800 + ql/time/dategenerationrule.hpp | 3 +-- + ql/time/schedule.cpp | 2 +- + test-suite/swap.cpp | 23 ++++++++++++++++++----- + test-suite/swap.hpp | 1 + + 4 files changed, 21 insertions(+), 8 deletions(-) - Making constructor explicit (codacy req) +commit 8473b5d978e2c49065c29e6d5c709e88a3e14729 +Author: Luigi Ballabio +Date: Fri, 27 Aug 2021 15:29:53 +0200 - ql/experimental/forward/analytichestonforwardeuropeanengine.hpp | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) + Implement rules for moving holidays -commit 32212e23e3d0fd8df23e152a211435ccb0de4e8f -Author: jackgillett101 -Date: Tue, 24 Nov 2020 08:39:37 +0800 + ql/time/calendars/chile.cpp | 94 ++++++++------------------------------------- + ql/time/calendars/chile.hpp | 23 +++++------ + 2 files changed, 24 insertions(+), 93 deletions(-) - Fixing codility, tidying, and reducing tolerance on MC prices slightly (due to low number of paths) +commit 78ece4458f7a5d3f2e15bce05e968115f1f6dea7 +Merge: 4ed6bbcc7 15ba84435 +Author: Luigi Ballabio +Date: Fri, 27 Aug 2021 12:07:45 +0200 - ql/experimental/forward/analytichestonforwardeuropeanengine.cpp | 4 ++-- - ql/experimental/forward/analytichestonforwardeuropeanengine.hpp | 8 +++----- - test-suite/forwardoption.cpp | 6 ++---- - 3 files changed, 7 insertions(+), 11 deletions(-) + Merge pull request #1170. + + Check dates against schedule in Actual/Actual (ISMA) -commit 280fb86c81ee94fdfa54eabd474778efc58c0bf6 -Author: jackgillett101 -Date: Tue, 24 Nov 2020 00:29:38 +0800 +commit 15ba84435a9d4e8c98b56f867c19da6be6bcc2de +Author: lewwe +Date: Fri, 27 Aug 2021 12:27:11 +0800 - Passing through unused parameter to the internal AnalyticHestonEngines + Remove unused variable e - ql/experimental/forward/analytichestonforwardeuropeanengine.cpp | 2 +- + test-suite/daycounters.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -commit 2fb7af46ee53b91f2a9ebd4aae6a08369e8a0020 -Author: jackgillett101 -Date: Tue, 24 Nov 2020 00:18:25 +0800 +commit ce9575d1f59246c76f164ebca5a1e32171fe9896 +Author: lewwe +Date: Fri, 27 Aug 2021 11:16:01 +0800 + + Remove unused variable - Fixing parameter ordering in constructor + test-suite/daycounters.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) - .../analytichestonforwardeuropeanengine.cpp | 6 ++-- - .../analytichestonforwardeuropeanengine.hpp | 37 ++++++++++------------ - 2 files changed, 20 insertions(+), 23 deletions(-) +commit 8d0d15531938d32eedf280c0a0c6e745fb5933f2 +Author: lewwe +Date: Fri, 27 Aug 2021 10:54:27 +0800 + + Check if d1 and d2 out of range for ActualActual + + ql/time/daycounters/actualactual.cpp | 7 +++++++ + test-suite/daycounters.cpp | 33 +++++++++++++++++++++++++++++++++ + test-suite/daycounters.hpp | 1 + + 3 files changed, 41 insertions(+) -commit 03f3bd811cc8d7d4c549d7df949b48eb5f6ac377 -Author: jackgillett101 -Date: Mon, 23 Nov 2020 23:59:07 +0800 +commit 4ed6bbcc782cd157ac54dc60771790008b579bc1 +Author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> +Date: Wed, 25 Aug 2021 16:19:58 +0000 - Adding an experimental analytic pricer for forward-start european options in Heston model + Update copyright list in license - QuantLib.vcxproj | 3 + - QuantLib.vcxproj.filters | 9 + - configure.ac | 1 + - ql/CMakeLists.txt | 2 + - ql/experimental/Makefile.am | 3 +- - ql/experimental/all.hpp | 1 + - ql/experimental/forward/Makefile.am | 45 ++++ - ql/experimental/forward/all.hpp | 5 + - .../analytichestonforwardeuropeanengine.cpp | 274 ++++++++++++++++++++ - .../analytichestonforwardeuropeanengine.hpp | 124 +++++++++ - test-suite/forwardoption.cpp | 283 ++++++++++++++------- - test-suite/forwardoption.hpp | 1 + - 12 files changed, 658 insertions(+), 93 deletions(-) + LICENSE.TXT | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) -commit 60afa352713bac2b759332686ed3070d357cfde8 -Merge: a6ad9cfd0 510d56023 +commit 860c6629c8d56a3261d03cd343099c0aaf67dc76 +Merge: f9245c9c4 44b989a94 Author: Luigi Ballabio -Date: Fri, 20 Nov 2020 11:54:44 +0100 +Date: Wed, 25 Aug 2021 17:40:34 +0200 - Merge pull request #942. + Merge pull request #1157. - Enhance Amortizing fixed rate bond class to accept InterestRate object + Move RiskyBond code to a new bond pricing engine -commit a6ad9cfd0419904cd4de31983524b0859a45588c -Merge: b0541407a c7bce9bf9 +commit f9245c9c44f169a67ebe28d38bed84287e7bee22 +Merge: 9daedddf7 fc312dce9 Author: Luigi Ballabio -Date: Fri, 20 Nov 2020 09:28:13 +0100 +Date: Wed, 25 Aug 2021 17:39:20 +0200 - Merge pull request #941. + Merge pull request #1167. - Adding an MC engine for Arithmetic Asians in Heston model + Swaps startDate() and maturityDate() should be virtual -commit b0541407a593a798b2b9f436c0e5a8656e423dbe -Merge: 88ac25871 a74f204ac -Author: Luigi Ballabio -Date: Fri, 20 Nov 2020 09:23:30 +0100 +commit fc312dce9c3773bc8758a0b0e7fac015d8703fc2 +Author: RalfKonrad +Date: Wed, 25 Aug 2021 12:14:26 +0200 - Merge pull request #938. - - CDS date generation using CDS and CDS2015 rules + Idiomatically overide does not need virtual. -commit a74f204ac662e3e7ecfd73d7e3e0971b4dff1a8c -Author: francis -Date: Thu, 19 Nov 2020 23:42:42 +0000 + ql/instruments/zerocouponinflationswap.hpp | 4 ++-- + ql/instruments/zerocouponswap.hpp | 4 ++-- + 2 files changed, 4 insertions(+), 4 deletions(-) - Move the cdsMaturity function to CDS instrument file. +commit 3c16f75bbc3c5e5988da816ec0726f1423ac4982 +Author: RalfKonrad +Date: Wed, 25 Aug 2021 10:40:20 +0200 - ql/instruments/creditdefaultswap.cpp | 30 ++++++++++++++++++++ - ql/instruments/creditdefaultswap.hpp | 14 +++++++++ - ql/time/schedule.cpp | 55 +++++++++--------------------------- - ql/time/schedule.hpp | 16 ++--------- - test-suite/schedule.cpp | 1 + - 5 files changed, 61 insertions(+), 55 deletions(-) + More 'Make overwritten functions virtual.' -commit 510d560230438f5bfb0c54dda2f806ea0b2da628 -Author: Piter Dias -Date: Thu, 19 Nov 2020 17:27:37 -0300 + ql/instruments/zerocouponinflationswap.hpp | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) - Trying to clean-up compiling errors on Mac, gcc4, gcc5 and C++03 mode. +commit 97cb3ac70b1265fd2ec1b0e0e394f1b4d19e1782 +Author: RalfKonrad +Date: Wed, 25 Aug 2021 10:27:18 +0200 - test-suite/amortizingbond.cpp | 4 +++- - 1 file changed, 3 insertions(+), 1 deletion(-) + Make overwritten functions virtual. -commit d03c676c6800394d97a82aab45c8867cab96dd32 -Author: Piter Dias -Date: Thu, 19 Nov 2020 16:55:35 -0300 + ql/instruments/swap.hpp | 4 ++-- + ql/instruments/zerocouponswap.hpp | 4 ++-- + 2 files changed, 4 insertions(+), 4 deletions(-) - Fixes an error introduced during code clean-up +commit 9daedddf7c8aeca5d2b271039b9d8d4894a2364b +Merge: 87c5ee2e1 1d75b44fe +Author: Luigi Ballabio +Date: Wed, 25 Aug 2021 09:48:14 +0200 - test-suite/amortizingbond.cpp | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) + Merge pull request #1166. + + Fixed parameter types -commit 0afe9b8ae1aabde1f4bcf71f261c4c2318520759 -Author: Piter Dias -Date: Thu, 19 Nov 2020 16:43:42 -0300 +commit 87c5ee2e17e9dd17488ec9957159b89db18d5d26 +Author: Luigi Ballabio +Date: Tue, 24 Aug 2021 23:22:19 +0200 - Clean-up - Changed std::vector to Real inside testBrazilianAmortizingFixedRateBond + Add CITATION.cff - test-suite/amortizingbond.cpp | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) + CITATION.cff | 11 +++++++++++ + 1 file changed, 11 insertions(+) -commit 1604f6b1e9b3bdf2917b506dab84cd38e864820d -Author: Piter Dias -Date: Thu, 19 Nov 2020 16:26:45 -0300 +commit 1d75b44fe21f9fa33d1468d53c8630c6bb8184f5 +Author: RalfKonrad +Date: Tue, 24 Aug 2021 21:26:02 +0200 - Remove unused faceAmount variable + Fixed parameter types - test-suite/amortizingbond.cpp | 1 - - 1 file changed, 1 deletion(-) + ql/termstructures/volatility/swaption/swaptionvolcube1.hpp | 12 +++++++----- + 1 file changed, 7 insertions(+), 5 deletions(-) -commit 56fb947da5cad97c40ef99df6a32a3ffc4317533 -Author: Piter Dias -Date: Thu, 19 Nov 2020 15:56:27 -0300 +commit 44b989a94432bb4a97d8bc5b8531064782b9c9a3 +Author: Luigi Ballabio +Date: Tue, 24 Aug 2021 14:26:22 +0200 - Fixes compiling errors and some identation. + Deprecate experimental risky bonds - test-suite/amortizingbond.cpp | 21 +++++++++++---------- - 1 file changed, 11 insertions(+), 10 deletions(-) + ql/experimental/credit/riskybond.cpp | 4 ++++ + ql/experimental/credit/riskybond.hpp | 25 +++++++++++++++++++------ + 2 files changed, 23 insertions(+), 6 deletions(-) -commit ee671dd03c0fd0dafc9bf879e0dd3157965ab6e0 -Author: Piter Dias -Date: Thu, 19 Nov 2020 15:06:17 -0300 +commit 4676c9625ee8b65b60d80fb8021b5f85335194c9 +Author: Luigi Ballabio +Date: Tue, 24 Aug 2021 14:15:36 +0200 - Add a Brazilian corporate bond (ISIN code BRRISFDBS005) to the amortizing bonds test + Add documentation, remove unused headers - test-suite/amortizingbond.cpp | 129 ++++++++++++++++++++++++++++++++++++++++-- - test-suite/amortizingbond.hpp | 1 + - 2 files changed, 126 insertions(+), 4 deletions(-) + ql/pricingengines/bond/riskybondengine.cpp | 6 +++--- + ql/pricingengines/bond/riskybondengine.hpp | 32 +++++++++++++++++++++++++++++- + 2 files changed, 34 insertions(+), 4 deletions(-) -commit c7bce9bf975ee2bb19c1c0190478e0549cb6c08c -Author: jackgillett101 -Date: Thu, 19 Nov 2020 20:50:50 +0800 +commit 78ce7e05acbabf576eb32b93652087a9f9111979 +Author: Luigi Ballabio +Date: Tue, 24 Aug 2021 12:59:24 +0200 - Opportunistically removing some whitespace + Plug in the rest of bond machinery - .../asian/mc_discr_arith_av_price_heston.hpp | 27 ++++------------------ - 1 file changed, 5 insertions(+), 22 deletions(-) + ql/pricingengines/bond/riskybondengine.cpp | 12 ++++++++-- + test-suite/bonds.cpp | 35 +++++++++++++++++------------- + 2 files changed, 30 insertions(+), 17 deletions(-) -commit 0fd3d16176b2042605773094bdc2020fec33119b -Author: jackgillett101 -Date: Thu, 19 Nov 2020 13:06:55 +0800 +commit 97bd48791b717366bdeaca386355ad8453d60385 +Author: Luigi Ballabio +Date: Tue, 24 Aug 2021 12:58:42 +0200 - Adding an MC engine for Arithmetic Asians in Heston model + Observe underlying curves - QuantLib.vcxproj | 2 + - QuantLib.vcxproj.filters | 6 + - ql/CMakeLists.txt | 2 + - ql/pricingengines/asian/Makefile.am | 2 + - ql/pricingengines/asian/all.hpp | 1 + - .../asian/mc_discr_arith_av_price_heston.cpp | 53 +++++ - .../asian/mc_discr_arith_av_price_heston.hpp | 226 +++++++++++++++++++++ - test-suite/asianoptions.cpp | 92 +++++++++ - test-suite/asianoptions.hpp | 1 + - 9 files changed, 385 insertions(+) + ql/pricingengines/bond/riskybondengine.cpp | 6 ++++-- + 1 file changed, 4 insertions(+), 2 deletions(-) -commit 88ac25871e6f77d8ab7de5ef0de47961571dc2b6 -Merge: 8fbd9340f e699f0e7b +commit b4a1974b134043e8f829b6d27bbcab94c64426aa Author: Luigi Ballabio -Date: Wed, 18 Nov 2020 23:24:56 +0100 +Date: Tue, 24 Aug 2021 12:30:44 +0200 - Merge pull request #935. - - Templating Asian pricing engines on their process type + Variable names -commit 484cce04e5d0218e25f02f312775df1d6813051b -Author: francis -Date: Wed, 18 Nov 2020 21:50:05 +0000 + ql/pricingengines/bond/riskybondengine.cpp | 19 +++++++++---------- + 1 file changed, 9 insertions(+), 10 deletions(-) - Change upfront and rebate to SimpleCashFlow. +commit 1b1a79fcc7c203140c601a6fd81da88ebcf222c3 +Author: Luigi Ballabio +Date: Tue, 24 Aug 2021 12:25:02 +0200 - ql/instruments/creditdefaultswap.cpp | 6 +++++- - ql/instruments/creditdefaultswap.hpp | 13 +++++++------ - 2 files changed, 12 insertions(+), 7 deletions(-) + Fix recovery dates in some cases -commit ba88406aa0b1d86923829da63774a6ad5526fb00 -Author: Piter Dias -Date: Wed, 18 Nov 2020 14:15:08 -0300 + ql/pricingengines/bond/riskybondengine.cpp | 12 ++++++------ + 1 file changed, 6 insertions(+), 6 deletions(-) - Add a new constructor to AmortizingFixedRateBond that accepts a vector of InterestRate objects as coupons. The main use cases are Brazilian corporate bonds whose coupons usually are annually compounded following Business252 day counter. +commit 1cdc7c210a058a92f372b1c8810ea4f3d9f8c2ef +Author: Luigi Ballabio +Date: Tue, 24 Aug 2021 12:13:34 +0200 - .../amortizingbonds/amortizingfixedratebond.cpp | 34 ++++++++++++++++++++++ - .../amortizingbonds/amortizingfixedratebond.hpp | 12 ++++++++ - 2 files changed, 46 insertions(+) + Revert unused changes -commit fee59af82964070f596edc28b4284133d186e750 -Author: francis -Date: Wed, 18 Nov 2020 17:03:38 +0000 + ql/instruments/bond.cpp | 2 -- + ql/instruments/bond.hpp | 2 -- + ql/pricingengines/bond/riskybondengine.cpp | 6 ++---- + ql/pricingengines/bond/riskybondengine.hpp | 13 ++++--------- + test-suite/bonds.cpp | 2 +- + 5 files changed, 7 insertions(+), 18 deletions(-) - The documentation was in the wrong place i.e. outside class declaration. +commit 8defedbe05d1ebf91d7e0f5cd46423831787ffc4 +Author: Luigi Ballabio +Date: Tue, 24 Aug 2021 11:54:36 +0200 - .../credit/defaultprobabilityhelpers.hpp | 61 ++++++++++++---------- - 1 file changed, 33 insertions(+), 28 deletions(-) + More reasonable recovery rate in test -commit e699f0e7bc0a6a4785f5b01841b417f2cb8719dd -Author: Luigi Ballabio -Date: Wed, 18 Nov 2020 17:33:47 +0100 + test-suite/bonds.cpp | 10 ++++++---- + 1 file changed, 6 insertions(+), 4 deletions(-) - Update VC++ projects. +commit f36bb218a23cfaa8a70c704bcb77e2c418f110c6 +Author: lewwe +Date: Tue, 24 Aug 2021 13:08:11 +0800 - QuantLib.vcxproj | 1 + - QuantLib.vcxproj.filters | 3 +++ - ql/CMakeLists.txt | 1 + - 3 files changed, 5 insertions(+) + Remove unused variable -commit cc62729f063c16b7d06ed10c8841e4b6cc2305b1 -Author: Luigi Ballabio -Date: Wed, 18 Nov 2020 17:30:38 +0100 + ql/pricingengines/bond/riskybondengine.cpp | 1 - + 1 file changed, 1 deletion(-) - Inherit old MC Asian base engine from new one. +commit d2f1451021d3a3003b76922a05dc6972ac678051 +Author: lewwe +Date: Tue, 24 Aug 2021 13:02:14 +0800 - ql/pricingengines/asian/mcdiscreteasianengine.hpp | 140 +++------------------- - 1 file changed, 14 insertions(+), 126 deletions(-) + Fix Review comments -commit 6ad3d06e53e0ede0c44346fe56fb3925681b67a3 -Author: francis -Date: Wed, 18 Nov 2020 15:17:20 +0000 + ql/pricingengines/bond/riskybondengine.cpp | 38 +++++++++++------------------- + ql/pricingengines/bond/riskybondengine.hpp | 3 --- + test-suite/bonds.cpp | 2 +- + 3 files changed, 15 insertions(+), 28 deletions(-) - In some cases, schedule may not have a rule so check. +commit 114361dd59f375f4e93b1d9fd6291dfe4d1573e7 +Author: Luigi Ballabio +Date: Mon, 23 Aug 2021 09:34:15 +0200 - ql/instruments/creditdefaultswap.cpp | 15 ++++++++++----- - 1 file changed, 10 insertions(+), 5 deletions(-) + Run docs check on macOS and latest Doxygen -commit 24ca459a12bfd409436343eb1bffb66d38ddf4fb -Author: francis -Date: Wed, 18 Nov 2020 11:27:01 +0000 + .github/workflows/doxygen.yml | 10 ++++++---- + Docs/quantlib.doxy | 10 +++++----- + 2 files changed, 11 insertions(+), 9 deletions(-) - Meant to comment these tests back in. +commit bbe05fbac58163c912920c3fe63eb31f4caaf92a +Merge: 018f8749a e4bbccd42 +Author: Luigi Ballabio +Date: Fri, 20 Aug 2021 15:56:32 +0200 - test-suite/creditdefaultswap.cpp | 10 +++++----- - 1 file changed, 5 insertions(+), 5 deletions(-) + Merge pull request #1162. + + Implementation of `GaussKronrodNonAdaptive::setRelativeAccuracy` -commit e38324739c6ccc1d7c6f28fb9fed1a0d7a3f6bd4 -Author: jackgillett101 -Date: Wed, 18 Nov 2020 18:05:41 +0800 +commit 3090e195fa9c85add22b12956379e1da28a1ac8c +Author: Marcin Rybacki +Date: Fri, 20 Aug 2021 11:36:43 +0200 - Support backwards compatibility + For consistency, settlement date flows should be included. - ql/pricingengines/asian/Makefile.am | 3 +- - ql/pricingengines/asian/all.hpp | 1 + - .../asian/mc_discr_arith_av_price.hpp | 25 +-- - .../asian/mc_discr_arith_av_strike.hpp | 27 +-- - ql/pricingengines/asian/mc_discr_geom_av_price.hpp | 27 +-- - ql/pricingengines/asian/mcdiscreteasianengine.hpp | 63 ++++--- - .../asian/mcdiscreteasianenginebase.hpp | 187 +++++++++++++++++++++ - 7 files changed, 261 insertions(+), 72 deletions(-) - -commit 0507a822b0c3e2a7673af9b53a5cc10135148d63 -Author: francis -Date: Wed, 18 Nov 2020 00:07:35 +0000 + ql/experimental/termstructures/crosscurrencyratehelpers.cpp | 10 ++++------ + 1 file changed, 4 insertions(+), 6 deletions(-) - Don't need this include. +commit 018f8749a0a7f580cc9393f7769734792efd503d +Author: Luigi Ballabio +Date: Fri, 20 Aug 2021 10:04:12 +0200 - ql/time/schedule.hpp | 1 - - 1 file changed, 1 deletion(-) + Remove a couple of redundant builds -commit f8f1224c332c264bc7666090e0585133621d5b02 -Merge: aff9830b7 9b0c3d4e2 -Author: Francis Duffy -Date: Tue, 17 Nov 2020 23:50:19 +0000 + .github/workflows/macos.yml | 6 ------ + 1 file changed, 6 deletions(-) - Merge pull request #3 from francisduffy/clang-tidy-fixes-refs/heads/issue_727_cds_date_generation - - Automated fixes by clang-tidy +commit e4bbccd42d93994abca273cc1a8d5d5b3143f291 +Author: laaouini +Date: Thu, 19 Aug 2021 19:21:28 +0200 -commit aff9830b72a25247b9b71123fe0e38c9d3fd71c7 -Author: francis -Date: Tue, 17 Nov 2020 23:42:04 +0000 + Implementation of GaussKronrodNonAdaptive::setRelativeAccuracy (added by Mickael Anas LAAOUINI) . - GH-727 Don't want the clang-tidy proposed fix here. + ql/math/integrals/kronrodintegral.cpp | 5 +++++ + 1 file changed, 5 insertions(+) - ql/instruments/creditdefaultswap.cpp | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) +commit de39a623fe70076cd5ae4be9ceafc46205f2f031 +Author: Luigi Ballabio +Date: Wed, 18 Aug 2021 19:47:18 +0200 -commit af7922f61c1831a3834553eb2d81c68ec29fa39a -Author: francis -Date: Tue, 17 Nov 2020 23:26:22 +0000 + Add CI builds on macOS 11 - GH-727 Forgot to change it here too. + .github/workflows/macos-nondefault.yml | 6 ++++++ + .github/workflows/macos.yml | 5 +++++ + 2 files changed, 11 insertions(+) - test-suite/schedule.cpp | 3 ++- - 1 file changed, 2 insertions(+), 1 deletion(-) +commit 05132b8199b132ad689d41d19d58d7758d69019a +Author: Marcin Rybacki +Date: Wed, 18 Aug 2021 11:58:59 +0200 -commit b5792c2539ba4f1a8b1b626396b67e24b7bdf1fd -Author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> -Date: Tue, 17 Nov 2020 23:17:34 +0000 + Adjusted docstrings. - Automated fixes by clang-tidy + ql/experimental/termstructures/crosscurrencyratehelpers.hpp | 5 +++-- + 1 file changed, 3 insertions(+), 2 deletions(-) - ql/instruments/creditdefaultswap.cpp | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) +commit 66c6c0353609078a8cd480c95217cf5c3a541065 +Author: Marcin Rybacki +Date: Wed, 18 Aug 2021 11:55:10 +0200 -commit 40676c4c702e68a19561e60f7c200f02bdb9d63f -Author: francis -Date: Tue, 17 Nov 2020 21:37:54 +0000 + Renamed test method. - GH-727 And another fix. + test-suite/crosscurrencyratehelpers.cpp | 12 ++++++------ + 1 file changed, 6 insertions(+), 6 deletions(-) - test-suite/schedule.cpp | 3 ++- - 1 file changed, 2 insertions(+), 1 deletion(-) +commit 0acd8ea58366d3b7c756e8dba21efd2c28026002 +Author: Marcin Rybacki +Date: Wed, 18 Aug 2021 11:27:19 +0200 -commit a0cec8c5ff10123a7efd534ee319cfbca13cb520 -Author: francis -Date: Tue, 17 Nov 2020 21:20:30 +0000 + Updated constructor signature of the mtm swap. - GH-727 Forgot this one. + ql/experimental/termstructures/crosscurrencyratehelpers.cpp | 8 ++++---- + ql/experimental/termstructures/crosscurrencyratehelpers.hpp | 8 ++++---- + 2 files changed, 8 insertions(+), 8 deletions(-) - ql/termstructures/credit/defaultprobabilityhelpers.cpp | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) +commit a6db231b464371062d9cac2d080ed0bbc6786545 +Author: Marcin Rybacki +Date: Wed, 18 Aug 2021 11:12:20 +0200 -commit 7318c621d5914690fd00ab64b6e61c8eeb47a4bd -Author: francis -Date: Tue, 17 Nov 2020 21:08:09 +0000 + Added missing std::move for calendar. - GH-727 Forgot the limitation on boost::make_shared with more than 9 parameters. + ql/experimental/termstructures/crosscurrencyratehelpers.cpp | 7 ++++--- + 1 file changed, 4 insertions(+), 3 deletions(-) - ql/instruments/makecds.cpp | 4 ++-- - ql/termstructures/credit/defaultprobabilityhelpers.cpp | 4 ++-- - 2 files changed, 4 insertions(+), 4 deletions(-) +commit 8f72504481ffded9924c5892667d63e8de55374c +Author: Marcin Rybacki +Date: Wed, 18 Aug 2021 11:04:56 +0200 -commit f68219e53d9be10cb373367184a965a87a2a2f12 -Author: francis -Date: Tue, 17 Nov 2020 20:49:32 +0000 + Added some clarification on conventions in the docstrings. - GH-727 Upfront and accrual rebate are always paid. - - The upfront and accrual rebate are paid regardless of whether there is a - credit event between trade date and cash settlement date so removed the - survival probability component from the NPV calculation here. + .../termstructures/crosscurrencyratehelpers.hpp | 14 +++++++++++++- + 1 file changed, 13 insertions(+), 1 deletion(-) - ql/pricingengines/credit/integralcdsengine.cpp | 41 ++++++++------------------ - ql/pricingengines/credit/midpointcdsengine.cpp | 39 +++++++----------------- - 2 files changed, 22 insertions(+), 58 deletions(-) +commit 35ad60aab5fb2d64410eba7d3af3d21b9d8f48b6 +Author: Marcin Rybacki +Date: Wed, 18 Aug 2021 10:11:13 +0200 -commit b7fcb84d317e29b2e23af68f18d80dd0bccd8dbd -Author: francis -Date: Tue, 17 Nov 2020 20:28:08 +0000 + Added an additional unit tests validating consistency checks. - GH-727 Minor updates to CDS helpers. - - - Update to ctor documentation, particularly settlementDays should - typically be 0 after CDS Big Bang for correct treatment. - - Use cdsMaturity function if rule is a CDS rule to generate helper end - date. - - Don't need to call CdsHelper::initializeDates() from - UpfrontCdsHelper::initializeDates() + test-suite/crosscurrencyratehelpers.cpp | 19 +++++++++++++++++++ + test-suite/crosscurrencyratehelpers.hpp | 2 ++ + 2 files changed, 21 insertions(+) - .../credit/defaultprobabilityhelpers.cpp | 41 +++++++++++----------- - .../credit/defaultprobabilityhelpers.hpp | 38 ++++++++++++++------ - test-suite/defaultprobabilitycurves.cpp | 6 ++-- - 3 files changed, 51 insertions(+), 34 deletions(-) +commit 33c70f2dead8cf89ac405cffb86ecde35acbd2e4 +Author: Marcin Rybacki +Date: Tue, 17 Aug 2021 18:57:58 +0200 -commit 8fbd9340f44115e90c93a7618eecdb609e227dd6 -Author: Luigi Ballabio -Date: Tue, 17 Nov 2020 18:45:14 +0100 + Rearranged unit tests for resetting swaps. - Upgrade create-pull-request action. + .../termstructures/crosscurrencyratehelpers.hpp | 2 +- + test-suite/crosscurrencyratehelpers.cpp | 66 +++++++++++++--------- + 2 files changed, 41 insertions(+), 27 deletions(-) - .github/workflows/copyrights.yml | 3 ++- - .github/workflows/misspell.yml | 3 ++- - .github/workflows/tidy.yml | 3 ++- - 3 files changed, 6 insertions(+), 3 deletions(-) +commit 071ee6f977d807c4d15d672624d0ffea7c274504 +Author: Marcin Rybacki +Date: Tue, 17 Aug 2021 11:58:08 +0200 -commit 535ad59f7795345fe63cd492863dca5d466f64d8 -Merge: a2fb7df91 4e6de2244 -Author: Luigi Ballabio -Date: Tue, 17 Nov 2020 18:08:55 +0100 + Working on unit tests - still to be adjusted. - Merge pull request #934. - - Adding BS and Heston MC pricers for strike-resetting forward start options + test-suite/crosscurrencyratehelpers.cpp | 167 ++++++++++++++++++++++++++++---- + test-suite/crosscurrencyratehelpers.hpp | 13 ++- + 2 files changed, 158 insertions(+), 22 deletions(-) -commit d12831543b20d7255c4e5c33a483f5126401f2fb -Author: francis -Date: Tue, 17 Nov 2020 15:58:41 +0000 +commit 74bc2a94ba669a8aaa51e67035bc20271d10ea70 +Author: Marcin Rybacki +Date: Tue, 17 Aug 2021 11:56:53 +0200 - GH-727 Update CDS instrument. - - Allow for specification of trade date and cash settlement days. There - was a built in assumption that if protection start was not given, it was - equal to the first date in the schedule. There was also an assumption - that cash settlement was 3 BD after protection start - 1D. This doesn't - really work after CDS Big Bang. The protection start is the trade date - itself, i.e. not T + 1 as it was before 2009. - - The accrual rebate calculation needed to be corrected to be in line with - the ISDA docs. A unit test has been added to check this. - - The code in the old 'if (rebatesAccrual) {}' block leads in some - scenarios to reads beyond the end of the leg vector and a crash. + Clean-up. - ql/instruments/creditdefaultswap.cpp | 167 ++++++++++++++++++++--------------- - ql/instruments/creditdefaultswap.hpp | 54 +++++++---- - ql/instruments/makecds.cpp | 51 ++++++++--- - ql/instruments/makecds.hpp | 19 ++-- - test-suite/creditdefaultswap.cpp | 42 +++++++++ - test-suite/creditdefaultswap.hpp | 1 + - 6 files changed, 225 insertions(+), 109 deletions(-) + ql/experimental/termstructures/crosscurrencyratehelpers.cpp | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) -commit 38d664d45b37401bc7c5d054b0f5eaa2c084ee3e -Author: francis -Date: Tue, 17 Nov 2020 14:40:55 +0000 +commit 991f94662d6ed8a40eeac7d549c05dd9904d69b4 +Author: Marcin Rybacki +Date: Tue, 17 Aug 2021 11:37:36 +0200 - GH-727 Update CDS schedule generation. - - If the first coupon period would exclude the unadjusted effective date, - include the prior period. Only applies to CDS and CDS2015. This covers - trade dates on Sat or Sun for example and leaves the period from the - previous coupon payment date to the following Monday in the schedule. - There are tests added to show this. CDS and CDS2015 periods are always - regular. + Fixed bootstrapping for all configurations. - ql/time/schedule.cpp | 9 ++++-- - test-suite/schedule.cpp | 74 +++++++++++++++++++++++++++++++++++++------------ - 2 files changed, 63 insertions(+), 20 deletions(-) + .../termstructures/crosscurrencyratehelpers.cpp | 77 +++++++++------------- + 1 file changed, 32 insertions(+), 45 deletions(-) -commit 4e6de22449e0632d268d6703687bbe78852133bb -Author: jackgillett101 -Date: Tue, 17 Nov 2020 21:30:10 +0800 +commit af12ddfd33babef62e8953e7b989e362785de381 +Author: Marcin Rybacki +Date: Mon, 16 Aug 2021 22:37:12 +0200 - Removing brownianBridging for the Heston MC forward option pricer + Testing resetting swaps implementation. - .../forward/mcforwardeuropeanhestonengine.hpp | 16 ++-------------- - 1 file changed, 2 insertions(+), 14 deletions(-) + .../termstructures/crosscurrencyratehelpers.cpp | 56 +++++++++++----------- + 1 file changed, 28 insertions(+), 28 deletions(-) -commit 83f2bfb3766542c2ed8b60102604840c88b4476b -Author: jackgillett101 -Date: Tue, 17 Nov 2020 20:46:39 +0800 +commit 1ffea9cdcd2b201cc2f3f21fc1b882b7550821e9 +Author: Marcin Rybacki +Date: Mon, 16 Aug 2021 18:43:52 +0200 - Also templating the base class to StochasticProcess instead of GBS Process + Fixed failing unit tests. - .../asian/mc_discr_arith_av_price.hpp | 25 ++++++++++++++++------ - .../asian/mc_discr_arith_av_strike.hpp | 8 +++++-- - ql/pricingengines/asian/mc_discr_geom_av_price.hpp | 8 +++++-- - ql/pricingengines/asian/mcdiscreteasianengine.hpp | 13 +++++------ - 4 files changed, 35 insertions(+), 19 deletions(-) + ql/experimental/termstructures/crosscurrencyratehelpers.cpp | 3 +-- + 1 file changed, 1 insertion(+), 2 deletions(-) -commit 2261094d321d9ebc555240214349d8818c625d9b -Author: francis -Date: Mon, 16 Nov 2020 23:18:29 +0000 +commit ce1db56702e32a792a35d58bd3af5341534b21ba +Author: Marcin Rybacki +Date: Mon, 16 Aug 2021 18:17:13 +0200 - Forgot about the pre C++11 parsing issue. + Further development of the mtm leg calculator. - test-suite/schedule.cpp | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) + .../termstructures/crosscurrencyratehelpers.cpp | 259 +++++++++++++++------ + .../termstructures/crosscurrencyratehelpers.hpp | 13 +- + 2 files changed, 193 insertions(+), 79 deletions(-) -commit 72c606423e139b24c6b573341fbdea6661ec056e -Author: francis -Date: Mon, 16 Nov 2020 14:58:47 +0000 +commit 8bde227ff183721a9d549d7f9b5c116bc0f9282a +Author: Marcin Rybacki +Date: Mon, 16 Aug 2021 12:23:25 +0200 - CDS schedule generation changes and tests for issue #727. - - The main addition is a function cdsMaturity(...) that can be used to - derive a CDS maturity date given a trade date, a valid CDS tenor and a - valid CDS date generation rule. The date generation is tested against - the dates provided in the ISDA documentation for CDS2015. It is also - tested for CDS and OldCDS. The logic for the 0M tenor is added for the - CDS and CDS2015 rules. + Further development of the mtm leg calculator. - ql/time/schedule.cpp | 44 ++-- - ql/time/schedule.hpp | 14 ++ - test-suite/schedule.cpp | 555 +++++++++++++++++++++++++++++++++++++++++++++--- - test-suite/schedule.hpp | 7 + - 4 files changed, 573 insertions(+), 47 deletions(-) + .../termstructures/crosscurrencyratehelpers.cpp | 21 +++++++++++---------- + 1 file changed, 11 insertions(+), 10 deletions(-) -commit 81fe09a7abb247ee872ef58e83e6c78c6897dfe5 -Author: jackgillett101 -Date: Mon, 16 Nov 2020 18:18:15 +0800 +commit 4c94d4cfebc7b5068fcf8d5c460adec6f92310fb +Author: Marcin Rybacki +Date: Mon, 16 Aug 2021 10:23:32 +0200 - Templating asian pricing engines on their process type + Added mtm leg calculator. - .../asian/mc_discr_arith_av_price.hpp | 26 +++++++++--------- - .../asian/mc_discr_arith_av_strike.hpp | 26 +++++++++--------- - ql/pricingengines/asian/mc_discr_geom_av_price.hpp | 26 +++++++++--------- - ql/pricingengines/asian/mcdiscreteasianengine.hpp | 32 +++++++++++----------- - 4 files changed, 55 insertions(+), 55 deletions(-) + .../termstructures/crosscurrencyratehelpers.cpp | 44 +++++++++++++++++++++- + .../termstructures/crosscurrencyratehelpers.hpp | 2 - + 2 files changed, 42 insertions(+), 4 deletions(-) -commit f0912eb5affb7b27f5a903897a0c2d475994ad6a -Author: jackgillett101 -Date: Mon, 16 Nov 2020 09:41:56 +0800 +commit e653aa55f7530adfbab034cbe83ac682885bf311 +Author: Marcin Rybacki +Date: Sun, 15 Aug 2021 17:50:51 +0200 - Removing control variate machinery for forward start mc pricers for now + Added description of the MtM swap helper class. - .../forward/mcforwardeuropeanbsengine.hpp | 1 - - .../forward/mcforwardeuropeanhestonengine.hpp | 1 - - .../forward/mcforwardvanillaengine.hpp | 28 +--------------------- - 3 files changed, 1 insertion(+), 29 deletions(-) + ql/experimental/termstructures/crosscurrencyratehelpers.hpp | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) -commit 0e0b614befe7f243a50c5f2cc4bffb2960edd7aa -Author: Luigi Ballabio -Date: Sun, 15 Nov 2020 22:13:22 +0100 +commit 8b8d351fd359a0b169167f3dd0532ac7671b6973 +Author: Marcin Rybacki +Date: Sun, 15 Aug 2021 17:38:03 +0200 - Update VC++ project + Legs in const notional helper are a proxy and should be treated as such. - QuantLib.vcxproj | 5 +++++ - QuantLib.vcxproj.filters | 15 +++++++++++++++ - 2 files changed, 20 insertions(+) + .../termstructures/crosscurrencyratehelpers.cpp | 57 ++++++++++------------ + .../termstructures/crosscurrencyratehelpers.hpp | 11 +---- + test-suite/crosscurrencyratehelpers.cpp | 23 ++++++--- + 3 files changed, 46 insertions(+), 45 deletions(-) -commit 716b742251aaa8e0898c27f63454dcbb6c543d53 -Author: jackgillett101 -Date: Mon, 16 Nov 2020 00:52:54 +0800 +commit 1ef119279754a04345a005c4043c0859b22f7940 +Author: Marcin Rybacki +Date: Sun, 15 Aug 2021 17:20:24 +0200 - Make factory constructors explicit (codacy requirement) + Clean-up and removed unused leg inspectors. - ql/pricingengines/forward/mcforwardeuropeanbsengine.hpp | 2 +- - ql/pricingengines/forward/mcforwardeuropeanhestonengine.hpp | 3 +-- - 2 files changed, 2 insertions(+), 3 deletions(-) + .../termstructures/crosscurrencyratehelpers.cpp | 26 ++++++++++++---------- + .../termstructures/crosscurrencyratehelpers.hpp | 15 ++----------- + test-suite/crosscurrencyratehelpers.cpp | 1 - + 3 files changed, 16 insertions(+), 26 deletions(-) -commit c5fe64edbc43737cee937ba3bea014b4ada548c9 -Author: jackgillett101 -Date: Sun, 15 Nov 2020 23:53:45 +0800 +commit eba2f25b19aeacecdb859f5f9d392d0b98bcb58a +Author: Marcin Rybacki +Date: Sun, 15 Aug 2021 16:51:41 +0200 - Rogue tabs -> spaces, clearing up a warning that broke some automated tests + Added fx spot rate to mtm swap helper constructor. - .../forward/mcforwardeuropeanbsengine.hpp | 14 ++++++------- - .../forward/mcforwardeuropeanhestonengine.hpp | 24 +++++++++++----------- - .../forward/mcforwardvanillaengine.hpp | 8 ++++---- - 3 files changed, 23 insertions(+), 23 deletions(-) + ql/experimental/termstructures/crosscurrencyratehelpers.hpp | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) -commit ac631f40637d4122231157677456327fea606024 -Author: jackgillett101 -Date: Sun, 15 Nov 2020 23:34:23 +0800 +commit 208523cccf7ef4f3eb7f65bf6695e2660abd97b1 +Author: Marcin Rybacki +Date: Sun, 15 Aug 2021 16:24:41 +0200 - Adding BS and Heston MC pricers for strike-resetting forward start options + Use Leg instead of Swap in constructing cross currency rate helpers. - ql/CMakeLists.txt | 5 + - ql/pricingengines/Makefile.am | 1 + - ql/pricingengines/forward/Makefile.am | 31 ++- - ql/pricingengines/forward/all.hpp | 3 + - .../forward/mcforwardeuropeanbsengine.cpp | 43 ++++ - .../forward/mcforwardeuropeanbsengine.hpp | 259 ++++++++++++++++++++ - .../forward/mcforwardeuropeanhestonengine.cpp | 44 ++++ - .../forward/mcforwardeuropeanhestonengine.hpp | 263 +++++++++++++++++++++ - .../forward/mcforwardvanillaengine.hpp | 171 ++++++++++++++ - test-suite/forwardoption.cpp | 205 ++++++++++++++++ - test-suite/forwardoption.hpp | 2 + - 11 files changed, 1026 insertions(+), 1 deletion(-) + .../termstructures/crosscurrencyratehelpers.cpp | 136 ++++++++++++--------- + .../termstructures/crosscurrencyratehelpers.hpp | 62 ++-------- + test-suite/crosscurrencyratehelpers.cpp | 46 ++++--- + 3 files changed, 119 insertions(+), 125 deletions(-) -commit a2fb7df9108115e09fac7c953acbc4383629f257 -Merge: f76fbecf4 8d1e75a04 -Author: Luigi Ballabio -Date: Wed, 11 Nov 2020 09:13:55 +0100 +commit cf660e2dd32e4bc3dbb9b45754f821036e14d99c +Author: lewwe +Date: Sun, 15 Aug 2021 17:53:03 +0800 - Merge pull request #931. - - Adding AtmSpot calculation to the BlackDeltaCalculator + Remove unused variable -commit 8d1e75a04707e36d62938b654fc64d7f8c1693ee -Author: jackgillett101 -Date: Wed, 11 Nov 2020 09:13:35 +0800 + test-suite/bonds.cpp | 1 - + 1 file changed, 1 deletion(-) - Adding AtmSpot calculation to the BlackDeltaCalculator +commit 6d206e46dcaed495bf5c2cf2368e54fca3e011a4 +Author: lewwe +Date: Sun, 15 Aug 2021 17:04:01 +0800 - ql/experimental/fx/blackdeltacalculator.cpp | 4 ++++ - 1 file changed, 4 insertions(+) + Reorder initialization -commit f76fbecf4f750d34dc24a6bad705cc71377d29e2 -Author: Luigi Ballabio -Date: Wed, 4 Nov 2020 22:48:21 +0100 + ql/pricingengines/bond/riskybondengine.cpp | 10 +++++----- + 1 file changed, 5 insertions(+), 5 deletions(-) - Avoid false positive from clang-tidy +commit 91e900c81c0a3b668eea403392c590265a7f19a7 +Author: lewwe +Date: Sun, 15 Aug 2021 15:00:55 +0800 - ql/termstructures/yield/ultimateforwardtermstructure.hpp | 3 ++- - 1 file changed, 2 insertions(+), 1 deletion(-) + Revert includes -commit d439cde8520a62cc8e431a9099eaa7148c3fb120 -Merge: 54b98d254 35054a8f4 -Author: Luigi Ballabio -Date: Wed, 4 Nov 2020 20:48:02 +0100 + ql/pricingengines/bond/all.hpp | 1 - + test-suite/bonds.cpp | 1 - + 2 files changed, 2 deletions(-) - Merge pull request #919. - - Regulatory curve for pension funds +commit fd29f9a8542ee0d71eeeac2fc9c28b765a173276 +Author: lewwe +Date: Sun, 15 Aug 2021 14:58:04 +0800 -commit 54b98d254383b42fd347c8c88c5a62977317f343 -Author: Luigi Ballabio -Date: Tue, 3 Nov 2020 16:57:30 +0100 + Revert - Use ccache in Mac OS build + ql/experimental/credit/riskybond.cpp | 122 +++++++++++++-------- + ql/experimental/credit/riskybond.hpp | 207 ++++++++++++++++++----------------- + 2 files changed, 183 insertions(+), 146 deletions(-) - .github/workflows/macos.yml | 16 +++++++++++++--- - 1 file changed, 13 insertions(+), 3 deletions(-) +commit 2a82875b4aab1b951cf8a86914793d80e34c3e79 +Author: lewwe +Date: Sun, 15 Aug 2021 14:54:43 +0800 -commit 35054a8f463b609b72de677fe4946808ae6ec0ec -Author: Luigi Ballabio -Date: Tue, 3 Nov 2020 15:59:40 +0100 + Revert - Update CMakeLists + ql/experimental/credit/riskybond.cpp | 55 +++++++++++++------------- + ql/experimental/credit/riskybond.hpp | 77 +++++++++++++++++++++++------------- + 2 files changed, 78 insertions(+), 54 deletions(-) - ql/CMakeLists.txt | 1 + - 1 file changed, 1 insertion(+) +commit 6a2555b9d168584e4256fd498cba50751c677638 +Author: lewwe +Date: Sun, 15 Aug 2021 14:52:58 +0800 -commit 82518071bbd1023f6f1625adac3edd123b263f1a -Author: Luigi Ballabio -Date: Tue, 3 Nov 2020 15:57:57 +0100 + Revert automated clang fixes - Reset executable bit for sources. + ql/experimental/credit/riskybond.cpp | 55 +++++++++++++------------- + ql/experimental/credit/riskybond.hpp | 77 +++++++++++++----------------------- + 2 files changed, 54 insertions(+), 78 deletions(-) - QuantLib.vcxproj | 0 - QuantLib.vcxproj.filters | 0 - ql/termstructures/yield/ultimateforwardtermstructure.hpp | 0 - test-suite/Makefile.am | 0 - test-suite/quantlibtestsuite.cpp | 0 - test-suite/testsuite.vcxproj | 0 - test-suite/testsuite.vcxproj.filters | 0 - test-suite/ultimateforwardtermstructure.cpp | 0 - test-suite/ultimateforwardtermstructure.hpp | 0 - 9 files changed, 0 insertions(+), 0 deletions(-) +commit e8924ecca33f64c0e950c73ed0675846717bc98b +Author: lewwe +Date: Sun, 15 Aug 2021 14:47:00 +0800 -commit a3f388f1a0447a7e31f7642e6a0b40a1b23503c6 -Author: Luigi Ballabio -Date: Mon, 2 Nov 2020 17:17:58 +0100 + Remove RiskyBond dependency - Test linux build on GitHub actions. + ql/experimental/credit/riskybond.cpp | 151 +++++++++---------- + ql/experimental/credit/riskybond.hpp | 233 +++++++++++++---------------- + ql/instruments/bond.cpp | 2 + + ql/instruments/bond.hpp | 2 + + ql/pricingengines/bond/riskybondengine.cpp | 43 +++++- + ql/pricingengines/bond/riskybondengine.hpp | 29 +++- + test-suite/bonds.cpp | 29 ++-- + 7 files changed, 261 insertions(+), 228 deletions(-) - .github/workflows/linux.yml | 178 +++++++++++++++++++++ - .travis.yml | 381 -------------------------------------------- - README.md | 8 +- - 3 files changed, 182 insertions(+), 385 deletions(-) +commit d0064847a3fd10f63ab3e69bd798e572611e4e31 +Author: Marcin Rybacki +Date: Sat, 14 Aug 2021 20:48:44 +0200 -commit 8938b774e952c89caeb44c61a6c05f6f9f2acfd8 -Author: Luigi Ballabio -Date: Fri, 30 Oct 2020 09:12:54 +0100 + Created MtMCrossCurrencyBasisSwapRateHelper class definition. - Reduce number of test configurations on Travis. + .../termstructures/crosscurrencyratehelpers.hpp | 69 +++++++++++++++++++++- + 1 file changed, 68 insertions(+), 1 deletion(-) - .travis.yml | 119 ++---------------------------------------------------------- - 1 file changed, 3 insertions(+), 116 deletions(-) +commit c411150fd46ee39ad011c2ec0b70f88247982951 +Merge: aef79f48d dc8715769 +Author: Luigi Ballabio +Date: Thu, 12 Aug 2021 17:19:26 +0200 + + Merge pull request #1158. + + Update `pkg-config` output -commit cbf2acd16a1f402ff29ede485f9b58bd2b383f74 -Merge: 2daf3f828 3af062727 +commit aef79f48d58ba1a5a11f3dc16eee046845a4d23b +Merge: f338d3c6c 503280064 Author: Luigi Ballabio -Date: Fri, 30 Oct 2020 09:56:18 +0100 +Date: Thu, 12 Aug 2021 13:31:16 +0200 - Merge pull request #909. + Merge pull request #1145. - make the check_header.py work in both python 2/3 + overhaul singleton implementation -commit 2daf3f828c9332994280cfd8d10605c359112622 +commit dc87157696788644a03f7203a814345a741c487f Author: Luigi Ballabio -Date: Thu, 29 Oct 2020 14:26:26 +0100 +Date: Thu, 12 Aug 2021 12:16:47 +0200 - Use GitHub Container Registry for Travis build. + Update cflags in pkg-config output - .travis.yml | 126 ++++++++++++++++++++++++++++++------------------------------ - 1 file changed, 63 insertions(+), 63 deletions(-) + quantlib.pc.in | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) -commit e26f3fc3680b3df6cafe857b87c78657c7d3519e +commit 5032800644c481ef5022d4ece219833deb3a77d6 Author: Luigi Ballabio -Date: Wed, 28 Oct 2020 17:29:31 +0100 +Date: Thu, 12 Aug 2021 10:45:43 +0200 - Update build matrix for Travis CI. + Add CI build for thread-safe singleton initialization - .travis.yml | 27 ++++++++++++++++++++++++--- - 1 file changed, 24 insertions(+), 3 deletions(-) + .github/workflows/linux-full-tests.yml | 6 ++++++ + .github/workflows/linux.yml | 7 +++++++ + 2 files changed, 13 insertions(+) -commit acd0135a3b49cf04a15dc31f0ee2fec9de35f90c +commit d228b6bcbc28b6c33f6b5d08395981f3174b0d68 Author: Luigi Ballabio -Date: Wed, 28 Oct 2020 21:29:09 +0100 +Date: Thu, 12 Aug 2021 10:42:32 +0200 - Avoid warning from Boost 1.74 on Mac OS X. + Update docs - ql/experimental/catbonds/catrisk.hpp | 7 +++++++ - 1 file changed, 7 insertions(+) + Docs/pages/config.docs | 8 +++++--- + configure.ac | 8 +++++--- + ql/userconfig.hpp | 8 +++++--- + 3 files changed, 15 insertions(+), 9 deletions(-) -commit 9629ff0f5520148ff8a27963a70538bb46519dec +commit 3ff2da9c8d973ed85bdf912bdce72eead895f3bb Author: Luigi Ballabio -Date: Mon, 26 Oct 2020 10:59:24 +0100 +Date: Thu, 12 Aug 2021 09:15:31 +0200 - Update version to 1.21-dev + Fix bash syntax - configure.ac | 2 +- - ql/version.hpp | 4 ++-- - 2 files changed, 3 insertions(+), 3 deletions(-) + .github/workflows/linux-full-tests.yml | 2 +- + .github/workflows/linux.yml | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) -commit 5d102f135eaeaeedbd74958a81aa81f9bd6b3e7b -Author: Marcin -Date: Wed, 14 Oct 2020 10:05:16 +0200 +commit ebe944f5bdda0d19d88cd5e5ad24f4341d9916f7 +Author: Luigi Ballabio +Date: Wed, 11 Aug 2021 21:41:55 +0200 - Last renaming to avoid duplicate names. + Fix linking - test-suite/ultimateforwardtermstructure.cpp | 20 +++++++++++--------- - 1 file changed, 11 insertions(+), 9 deletions(-) + .github/workflows/linux-full-tests.yml | 3 +++ + .github/workflows/linux.yml | 3 +++ + configure.ac | 2 +- + ql/auto_link.hpp | 2 +- + 4 files changed, 8 insertions(+), 2 deletions(-) -commit 7fd0c82819d12cc1b241ce3412cb766311ac4f85 -Author: Marcin -Date: Wed, 14 Oct 2020 09:56:38 +0200 +commit 542070d95ffd866180bf46d5c893a3c218ef61cc +Author: Luigi Ballabio +Date: Wed, 11 Aug 2021 17:30:52 +0200 - Found and removed redundant code. + Add CI build with sessions enabled - test-suite/ultimateforwardtermstructure.cpp | 4 ---- - 1 file changed, 4 deletions(-) + .github/workflows/linux-full-tests.yml | 6 ++++++ + .github/workflows/linux.yml | 7 +++++++ + 2 files changed, 13 insertions(+) -commit 44fbf4b73e3a85ee564cfdaf01daede26ec8f546 -Author: Marcin -Date: Tue, 13 Oct 2020 22:45:44 +0200 +commit f338d3c6cbe664cae483446ad8f139768cafd926 +Author: Luigi Ballabio +Date: Mon, 9 Aug 2021 09:46:44 +0200 - Adjusted inspectors test. + Add gcc 11 to build matrix; upgrade gcc 10 - test-suite/ultimateforwardtermstructure.cpp | 8 ++++---- - 1 file changed, 4 insertions(+), 4 deletions(-) + .github/workflows/linux-full-tests.yml | 16 +++++++++++++++- + .github/workflows/linux-nondefault.yml | 10 +++++++++- + .github/workflows/linux.yml | 10 +++++++++- + 3 files changed, 33 insertions(+), 3 deletions(-) -commit 2eeca623775c4c053314504794fb9562ec4389f9 -Author: Marcin -Date: Tue, 13 Oct 2020 22:42:53 +0200 +commit 9bab8e30c17e4affc26c82c7a9f4b07ae2746067 +Merge: 4118e3560 4f585ccec +Author: Luigi Ballabio +Date: Wed, 11 Aug 2021 13:44:22 +0200 - Remove maxTime() from class definition. + Merge pull request #1142. + + Avoid callable-bond mispricing when a call date is close to a coupon date - ql/termstructures/yield/ultimateforwardtermstructure.hpp | 1 - - 1 file changed, 1 deletion(-) +commit 116ac0250278607c3f61e323aa3dab1b9498eb70 +Author: lewwe +Date: Sun, 8 Aug 2021 09:42:04 +0800 -commit 7385304d5b5e4143479b7820918aabeb10ebf8ad -Author: Marcin -Date: Tue, 13 Oct 2020 22:38:56 +0200 + Dummy commit - Renamed to ultimateforwardtermstructure. + ql/pricingengines/bond/riskybondengine.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) - QuantLib.vcxproj | 2 +- - QuantLib.vcxproj.filters | 2 +- - ql/termstructures/yield/Makefile.am | 2 +- - ql/termstructures/yield/all.hpp | 2 +- - ...mstructure.hpp => ultimateforwardtermstructure.hpp} | 8 ++++---- - test-suite/CMakeLists.txt | 2 +- - test-suite/Makefile.am | 4 ++-- - test-suite/quantlibtestsuite.cpp | 2 +- - test-suite/testsuite.vcxproj | 4 ++-- - test-suite/testsuite.vcxproj.filters | 4 ++-- - ...mstructure.cpp => ultimateforwardtermstructure.cpp} | 18 +++++++++--------- - ...mstructure.hpp => ultimateforwardtermstructure.hpp} | 4 ++-- - 12 files changed, 27 insertions(+), 27 deletions(-) +commit 7f3cd5d2719f5d78126850d4bdc5ff29f3a3f4cc +Author: Luigi Ballabio +Date: Thu, 5 Aug 2021 17:00:51 +0200 -commit a2eb2e3790e4ce0af04fdd2e8436ff87dbfd5100 -Author: Marcin -Date: Tue, 13 Oct 2020 22:12:57 +0200 + Add new files to relevant file lists - Changed max date method and removed max time method. + QuantLib.vcxproj | 2 ++ + QuantLib.vcxproj.filters | 6 ++++++ + ql/CMakeLists.txt | 2 ++ + ql/time/calendars/Makefile.am | 2 ++ + ql/time/calendars/all.hpp | 1 + + 5 files changed, 13 insertions(+) - ql/termstructures/yield/regulatorytermstructure.hpp | 4 +--- - 1 file changed, 1 insertion(+), 3 deletions(-) +commit 4bf9ce401bf0a7fd8b5f6e0ea7f4b61603985eaa +Author: lewwe +Date: Thu, 5 Aug 2021 21:26:00 +0800 -commit aff108edd95b6a11327a6a7c6cae02c16b8fc7d7 -Author: Marcin -Date: Tue, 13 Oct 2020 22:04:32 +0200 + Correct slashes - Changed type of First Smoothing Point to Period. + ql/pricingengines/bond/riskybondengine.hpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) - .../yield/regulatorytermstructure.hpp | 16 ++--- - test-suite/regulatorytermstructure.cpp | 69 +++++++++++----------- - 2 files changed, 44 insertions(+), 41 deletions(-) +commit 1b2eab60c04bc70376d850ac67b464f37cc31e96 +Author: lewwe +Date: Thu, 5 Aug 2021 21:22:54 +0800 -commit c457c4374ba9829cdcca8bd9ebb9b0e107618f43 -Author: Marcin -Date: Tue, 13 Oct 2020 12:43:12 +0200 + Correct slashes - Fix build. + ql/pricingengines/bond/riskybondengine.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) - test-suite/CMakeLists.txt | 1 + - test-suite/regulatorytermstructure.cpp | 19 ++++++------------- - 2 files changed, 7 insertions(+), 13 deletions(-) +commit 6c8d0d9e47beeef4ff45aa468280a91882d60b5e +Author: lewwe +Date: Thu, 5 Aug 2021 21:09:48 +0800 + + Revert "Correct slashes" + + This reverts commit b76b8f3cf2d6703459203fcd71487786cca5d3b1. + + Examples/BasketLosses/BasketLosses.vcxproj | 4 ---- + Examples/BermudanSwaption/BermudanSwaption.vcxproj | 4 ---- + Examples/Bonds/Bonds.vcxproj | 4 ---- + Examples/CDS/CDS.vcxproj | 4 ---- + Examples/CVAIRS/CVAIRS.vcxproj | 4 ---- + Examples/CallableBonds/CallableBonds.vcxproj | 4 ---- + Examples/ConvertibleBonds/ConvertibleBonds.vcxproj | 4 ---- + Examples/DiscreteHedging/DiscreteHedging.vcxproj | 4 ---- + Examples/EquityOption/EquityOption.vcxproj | 4 ---- + Examples/FRA/FRA.vcxproj | 4 ---- + Examples/FittedBondCurve/FittedBondCurve.vcxproj | 4 ---- + Examples/Gaussian1dModels/Gaussian1dModels.vcxproj | 4 ---- + Examples/GlobalOptimizer/GlobalOptimizer.vcxproj | 4 ---- + Examples/LatentModel/LatentModel.vcxproj | 4 ---- + Examples/MarketModels/MarketModels.vcxproj | 4 ---- + .../MulticurveBootstrapping.vcxproj | 4 ---- + Examples/MultidimIntegral/MultidimIntegral.vcxproj | 4 ---- + Examples/Replication/Replication.vcxproj | 4 ---- + Examples/Repo/Repo.vcxproj | 4 ---- + Microsoft.Cpp.Win32.user.props | 16 ---------------- + QuantLib.vcxproj | 4 ---- + test-suite/testsuite.vcxproj | 6 +----- + 22 files changed, 1 insertion(+), 101 deletions(-) + +commit 54294ae180404daa90796d96dc6eef35e3b92797 +Author: lewwe +Date: Thu, 5 Aug 2021 21:09:44 +0800 -commit 44dc9a3f7cdd3abefc4b491f33439e54ede9f65e -Author: Marcin -Date: Tue, 13 Oct 2020 10:11:17 +0200 + Revert "Dummy commit" + + This reverts commit 1639facd276c2d4292db3ce19ed312f217ef92bb. - Some more adjustments. + ql/experimental/credit/riskybond.hpp | 1 - + 1 file changed, 1 deletion(-) - ql/termstructures/yield/regulatorytermstructure.hpp | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) +commit 1639facd276c2d4292db3ce19ed312f217ef92bb +Author: lewwe +Date: Thu, 5 Aug 2021 21:07:08 +0800 -commit bdf79520177083b1ab2cf3176f601c78faec94e6 -Author: Marcin -Date: Tue, 13 Oct 2020 10:06:15 +0200 + Dummy commit - Some more comments adjustments. + ql/experimental/credit/riskybond.hpp | 1 + + 1 file changed, 1 insertion(+) - test-suite/regulatorytermstructure.cpp | 15 +++++---------- - 1 file changed, 5 insertions(+), 10 deletions(-) +commit b76b8f3cf2d6703459203fcd71487786cca5d3b1 +Author: lewwe +Date: Thu, 5 Aug 2021 20:57:36 +0800 + + Correct slashes + + Examples/BasketLosses/BasketLosses.vcxproj | 4 ++++ + Examples/BermudanSwaption/BermudanSwaption.vcxproj | 4 ++++ + Examples/Bonds/Bonds.vcxproj | 4 ++++ + Examples/CDS/CDS.vcxproj | 4 ++++ + Examples/CVAIRS/CVAIRS.vcxproj | 4 ++++ + Examples/CallableBonds/CallableBonds.vcxproj | 4 ++++ + Examples/ConvertibleBonds/ConvertibleBonds.vcxproj | 4 ++++ + Examples/DiscreteHedging/DiscreteHedging.vcxproj | 4 ++++ + Examples/EquityOption/EquityOption.vcxproj | 4 ++++ + Examples/FRA/FRA.vcxproj | 4 ++++ + Examples/FittedBondCurve/FittedBondCurve.vcxproj | 4 ++++ + Examples/Gaussian1dModels/Gaussian1dModels.vcxproj | 4 ++++ + Examples/GlobalOptimizer/GlobalOptimizer.vcxproj | 4 ++++ + Examples/LatentModel/LatentModel.vcxproj | 4 ++++ + Examples/MarketModels/MarketModels.vcxproj | 4 ++++ + .../MulticurveBootstrapping.vcxproj | 4 ++++ + Examples/MultidimIntegral/MultidimIntegral.vcxproj | 4 ++++ + Examples/Replication/Replication.vcxproj | 4 ++++ + Examples/Repo/Repo.vcxproj | 4 ++++ + Microsoft.Cpp.Win32.user.props | 16 ++++++++++++++++ + QuantLib.vcxproj | 4 ++++ + test-suite/testsuite.vcxproj | 6 +++++- + 22 files changed, 101 insertions(+), 1 deletion(-) + +commit 07a07e006668e2681d1f906f11f719b0998956ba +Author: lewwe +Date: Thu, 5 Aug 2021 20:57:36 +0800 -commit 1913b17fc559906b7d7b7e72ebe54440bcde6e9c -Author: Marcin -Date: Tue, 13 Oct 2020 10:03:36 +0200 + Dummy commit - Added clarifying comment about forward extrapolation. + ql/experimental/credit/riskybond.hpp | 1 - + 1 file changed, 1 deletion(-) - ql/termstructures/yield/regulatorytermstructure.hpp | 15 +++++++++++++-- - 1 file changed, 13 insertions(+), 2 deletions(-) +commit 90b346a409366228b766096bdc091d3a6aa2305f +Author: lewwe +Date: Thu, 5 Aug 2021 19:23:21 +0800 -commit 43dd991968f1aec07c04fbd7a3ad829f2817b88d -Author: Marcin -Date: Mon, 12 Oct 2020 21:23:25 +0200 + correct clashes - Added test data reference. + ql/pricingengines/bond/all.hpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) - test-suite/regulatorytermstructure.cpp | 5 +++-- - 1 file changed, 3 insertions(+), 2 deletions(-) +commit 0a187c9583c69d4e92c88f71277e9b9aef26279e +Author: lewwe +Date: Thu, 5 Aug 2021 18:20:40 +0800 -commit a498b346d10e0bf77060904fa6b0e010de3445cb -Author: Marcin -Date: Mon, 12 Oct 2020 20:13:03 +0200 + Add dependency - Adjusted inspectors' test. + ql/pricingengines/bond/all.hpp | 1 + + 1 file changed, 1 insertion(+) - test-suite/regulatorytermstructure.cpp | 5 ----- - 1 file changed, 5 deletions(-) +commit 5d125d99653275d30f7ab124d62187342f2ab625 +Author: lewwe +Date: Thu, 5 Aug 2021 17:30:07 +0800 -commit 6940a2cad869c3bce8591525e2650098e8aa258e -Author: Marcin -Date: Mon, 12 Oct 2020 20:07:58 +0200 + Reorder - Adjusted error message precision. + ql/experimental/credit/riskybond.hpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) - test-suite/regulatorytermstructure.cpp | 1 - - 1 file changed, 1 deletion(-) +commit 80a8a96c39eda4527b152edbc11b0bcf5ab62105 +Author: lewwe +Date: Thu, 5 Aug 2021 17:06:41 +0800 + + Refactoring + + QuantLib.vcxproj | 4 +++- + QuantLib.vcxproj.filters | 4 +++- + ql/CMakeLists.txt | 2 ++ + ql/experimental/credit/riskybond.cpp | 9 ++------- + ql/experimental/credit/riskybond.hpp | 10 +--------- + ql/pricingengines/bond/Makefile.am | 6 ++++-- + ql/pricingengines/bond/all.hpp | 1 + + ql/pricingengines/{ => bond}/riskybondengine.cpp | 6 +----- + ql/pricingengines/{ => bond}/riskybondengine.hpp | 3 --- + test-suite/bonds.cpp | 4 ++-- + 10 files changed, 19 insertions(+), 30 deletions(-) + +commit da1db510c9bcc9fcd2c94a861adc3ea46350c7f7 +Author: lewwe +Date: Thu, 5 Aug 2021 15:48:56 +0800 + + Add working test + fix engine + + ql/experimental/credit/riskybond.cpp | 38 +++++++++-------------- + ql/experimental/credit/riskybond.hpp | 23 +++++++++++++- + ql/pricingengines/riskybondengine.cpp | 25 ++++++++------- + ql/pricingengines/riskybondengine.hpp | 17 +++++----- + test-suite/bonds.cpp | 58 +++++++++++++++++++++++++++++++++++ + test-suite/bonds.hpp | 1 + + 6 files changed, 115 insertions(+), 47 deletions(-) + +commit 7754d878c307fdf77c41230965c82fdf529dcf07 +Author: anubhav-pandey1 <73362441+anubhav-pandey1@users.noreply.github.com> +Date: Sun, 1 Aug 2021 19:45:20 +0530 + + Add Chilean list of holidays + + ql/time/calendars/chile.cpp | 149 ++++++++++++++++++++++++++++++++++++++++++++ + 1 file changed, 149 insertions(+) + +commit 5cdd3aede2ebfb3c5df1436231b41f1d3a7b7816 +Author: anubhav-pandey1 <73362441+anubhav-pandey1@users.noreply.github.com> +Date: Sun, 1 Aug 2021 18:04:33 +0530 + + Add header for Chilean Calendar + + ql/time/calendars/chile.hpp | 80 +++++++++++++++++++++++++++++++++++++++++++++ + 1 file changed, 80 insertions(+) + +commit 342fe813f5d0fae0912e6b632078fc7ddade5e3f +Author: lewwe +Date: Sat, 31 Jul 2021 14:57:16 +0800 + + Add Bond Engine + + ql/experimental/credit/riskybond.cpp | 16 ++++----- + ql/experimental/credit/riskybond.hpp | 3 +- + ql/pricingengines/riskybondengine.cpp | 64 +++++++++++++++-------------------- + ql/pricingengines/riskybondengine.hpp | 13 +++---- + 4 files changed, 40 insertions(+), 56 deletions(-) + +commit aaf9254c10006a146662c74ed39708cb2800514f +Author: lewwe +Date: Sun, 25 Jul 2021 17:51:03 +0800 + + Temp commit + + ql/experimental/credit/riskybond.cpp | 8 ----- + ql/experimental/credit/riskybond.hpp | 23 ++++++++---- + ql/pricingengines/riskybondengine.cpp | 68 +++++++++++++++++++++++++++++++++++ + ql/pricingengines/riskybondengine.hpp | 50 ++++++++++++++++++++++++++ + 4 files changed, 134 insertions(+), 15 deletions(-) + +commit 4118e3560cd1e09f85ddae4937ce74f0d7bf93af +Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> +Date: Mon, 19 Jul 2021 11:00:48 +0000 + + Bump actions/stale from 3 to 4 + + Bumps [actions/stale](https://github.com/actions/stale) from 3 to 4. + - [Release notes](https://github.com/actions/stale/releases) + - [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md) + - [Commits](https://github.com/actions/stale/compare/v3...v4) + + --- + updated-dependencies: + - dependency-name: actions/stale + dependency-type: direct:production + update-type: version-update:semver-major + ... + + Signed-off-by: dependabot[bot] -commit c5a16a7d82fd613f94d4e94de36ce598e970689e -Author: Marcin -Date: Mon, 12 Oct 2020 19:55:48 +0200 + .github/workflows/stale.yml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) - Adjusted error message precision. +commit da2318636aa6c63ea408f409e199ffe560a48809 +Merge: 470a07046 e398fc0f3 +Author: Luigi Ballabio +Date: Fri, 16 Jul 2021 14:49:12 +0200 - test-suite/regulatorytermstructure.cpp | 20 ++++++++++++-------- - 1 file changed, 12 insertions(+), 8 deletions(-) + Merge pull request #1150. + + Deprecate obsolete data member in `BlackCalibrationHelper` -commit 91540c4ef86e9c54350d38f5d8488db9957c153d -Author: Marcin -Date: Mon, 12 Oct 2020 19:49:45 +0200 +commit 470a0704692b3cfe572a8f6c61f11811f1486d36 +Merge: 29e05f3ce 5ae8b949d +Author: Luigi Ballabio +Date: Fri, 16 Jul 2021 03:28:41 +0200 - Forgot to include the new test. + Merge pull request #1149. + + Deprecate nominal term structure contained in inflation curves - test-suite/regulatorytermstructure.cpp | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) +commit 29e05f3ceeb7544c8f586fb83863929fe29129a7 +Merge: 47e6c0c67 996e1d6d9 +Author: Luigi Ballabio +Date: Thu, 15 Jul 2021 23:57:37 +0200 -commit d9067e7d70e3cbddc6c8fd6bb9078dece62a2f4d -Author: Marcin -Date: Mon, 12 Oct 2020 19:46:21 +0200 + Merge pull request #1144. + + added time dependent interest rates and dividend yield to local vol test - Added observability tests. +commit 5ae8b949dfcf465fd2bb033bee2f074026d728d0 +Author: Luigi Ballabio +Date: Thu, 15 Jul 2021 16:34:53 +0200 - test-suite/regulatorytermstructure.cpp | 42 ++++++++++++++++++++++++++++------ - test-suite/regulatorytermstructure.hpp | 1 + - 2 files changed, 36 insertions(+), 7 deletions(-) + Avoid deprecation warnings in gcc -commit 2cfb39ae69790c0fcd5b7afaa14d30faca85e268 -Author: Marcin -Date: Mon, 12 Oct 2020 18:24:57 +0200 + ql/termstructures/inflationtermstructure.cpp | 3 +++ + 1 file changed, 3 insertions(+) - Added some testing description. +commit 47e6c0c67269166437ccceb4b8ab68fdca53d0ce +Merge: 54ddddddd db264185b +Author: Luigi Ballabio +Date: Thu, 15 Jul 2021 16:13:38 +0200 - ql/termstructures/yield/regulatorytermstructure.hpp | 11 ++++++++++- - 1 file changed, 10 insertions(+), 1 deletion(-) + Merge pull request #1147. + + Remove features deprecated in version 1.19 -commit 3a7b738e3ed4be04de2885e7675c189e4a353972 -Author: Marcin -Date: Mon, 12 Oct 2020 09:38:44 +0200 +commit e398fc0f3f69969ca42cc411e88a18d0c40d0434 +Author: Luigi Ballabio +Date: Thu, 15 Jul 2021 16:02:49 +0200 - Corrected a typo in the comments. + Remove redundant destructor - ql/termstructures/yield/regulatorytermstructure.hpp | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) + ql/models/calibrationhelper.hpp | 2 -- + 1 file changed, 2 deletions(-) -commit a96cbb9f2ac5b9d3db5a4302edccf5496f7c171e -Author: Marcin -Date: Sun, 11 Oct 2020 16:37:08 +0200 +commit 500d3014f1d03d16331971a0a7ba62aed3998c57 +Author: Luigi Ballabio +Date: Thu, 15 Jul 2021 15:53:22 +0200 - Maintain alphabetic order. + Deprecate nominal curves contained in inflation curves. - test-suite/quantlibtestsuite.cpp | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) + ql/cashflows/cpicouponpricer.cpp | 3 +++ + ql/cashflows/inflationcouponpricer.cpp | 3 +++ + ql/instruments/makeyoyinflationcapfloor.cpp | 2 ++ + .../inflation/inflationcapfloorengines.cpp | 4 ++++ + ql/termstructures/inflation/inflationhelpers.cpp | 5 +++++ + ql/termstructures/inflationtermstructure.hpp | 23 +++++++++++++++++++++- + 6 files changed, 39 insertions(+), 1 deletion(-) -commit d09b8f54a851c65ad0f2506b53182896fc0fedeb -Author: Marcin -Date: Sun, 11 Oct 2020 16:31:32 +0200 +commit 54dddddddeff79debcb7c3b4274c83d48a6added +Merge: 0ed4b34cc 435223365 +Author: Luigi Ballabio +Date: Thu, 15 Jul 2021 12:05:08 +0200 - Uncommented too much. + Merge pull request #1138. + + Fixing calibration issue with HestonSLVFDMModel and adding a (slow!) test - test-suite/quantlibtestsuite.cpp | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) +commit d656cd1dfb40c8f4e0b97b88e7c002c8e64e218b +Author: Luigi Ballabio +Date: Thu, 15 Jul 2021 12:03:34 +0200 -commit 1cef632a08c827716a9e4850943e73261aa02ca5 -Author: Marcin -Date: Sun, 11 Oct 2020 16:29:09 +0200 + Try disabling deprecation warnings again - Rolled back main test file. + ql/models/calibrationhelper.hpp | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) - test-suite/quantlibtestsuite.cpp | 326 +++++++++++++++++++-------------------- - 1 file changed, 163 insertions(+), 163 deletions(-) +commit 2b65df0c976d56809ed659a3cb223524f883631a +Author: Luigi Ballabio +Date: Thu, 15 Jul 2021 10:19:03 +0200 -commit 17b885f7c032cbe51118a1d0a68d313d8bc31a6f -Author: Marcin -Date: Sun, 11 Oct 2020 16:28:05 +0200 + Disable warning when destroying deprecated member - Added clarifying comments. + ql/models/calibrationhelper.hpp | 2 ++ + 1 file changed, 2 insertions(+) - test-suite/regulatorytermstructure.cpp | 13 +++++++++++-- - 1 file changed, 11 insertions(+), 2 deletions(-) +commit 8077d228e40507e757d7d206ba1813d5a5df7097 +Author: Luigi Ballabio +Date: Wed, 14 Jul 2021 18:42:53 +0200 -commit 4fc9f80a1c795a8c6198acec28a4b69bedb703f9 -Author: Marcin -Date: Sun, 11 Oct 2020 16:15:56 +0200 + Disable warning when default-initializing deprecated member - Consistent renaming in tests. + ql/models/calibrationhelper.hpp | 3 +++ + 1 file changed, 3 insertions(+) - ql/termstructures/yield/all.hpp | 1 + - test-suite/quantlibtestsuite.cpp | 4 ++-- - test-suite/regulatorytermstructure.cpp | 34 +++++++++++++++++----------------- - test-suite/regulatorytermstructure.hpp | 2 +- - 4 files changed, 21 insertions(+), 20 deletions(-) +commit 51274e71746af9a383f303913f7b4dad400ea0ae +Author: Luigi Ballabio +Date: Thu, 15 Jul 2021 10:17:33 +0200 -commit 10ea5400389c2fbe74f7942fdaff2a633a56b8df -Author: Marcin -Date: Sun, 11 Oct 2020 16:10:18 +0200 + Deprecate obsolete data member - Renamed to make the UFR name clearer. + ql/models/calibrationhelper.hpp | 7 ++++++- + 1 file changed, 6 insertions(+), 1 deletion(-) - .../yield/regulatorytermstructure.hpp | 43 ++++++++++++---------- - test-suite/regulatorytermstructure.cpp | 32 ++++++++-------- - 2 files changed, 40 insertions(+), 35 deletions(-) +commit db264185bc7611f0873c60ed7537dff551ddda51 +Author: Luigi Ballabio +Date: Wed, 14 Jul 2021 18:01:19 +0200 + + Remove features deprecated in version 1.19. + + ql/cashflows/inflationcouponpricer.hpp | 12 -- + ql/indexes/bmaindex.cpp | 12 -- + ql/indexes/bmaindex.hpp | 6 - + ql/methods/finitedifferences/americancondition.hpp | 17 --- + ql/methods/finitedifferences/fdtypedefs.hpp | 10 -- + ql/methods/finitedifferences/shoutcondition.hpp | 21 ---- + ql/methods/finitedifferences/stepcondition.hpp | 81 ------------- + ql/models/calibrationhelper.hpp | 17 --- + .../inflation/interpolatedyoyinflationcurve.hpp | 105 ---------------- + .../inflation/interpolatedzeroinflationcurve.hpp | 110 ----------------- + .../inflation/piecewiseyoyinflationcurve.hpp | 25 ---- + .../inflation/piecewisezeroinflationcurve.hpp | 25 ---- + ql/termstructures/inflationtermstructure.cpp | 132 --------------------- + ql/termstructures/inflationtermstructure.hpp | 130 -------------------- + ql/termstructures/yield/discountcurve.hpp | 24 ---- + ql/termstructures/yield/forwardcurve.hpp | 24 ---- + ql/termstructures/yield/forwardstructure.cpp | 10 -- + ql/termstructures/yield/forwardstructure.hpp | 10 -- + .../yield/interpolatedsimplezerocurve.hpp | 20 ---- + ql/termstructures/yield/zerocurve.hpp | 24 ---- + ql/termstructures/yield/zeroyieldstructure.cpp | 10 -- + ql/termstructures/yield/zeroyieldstructure.hpp | 10 -- + ql/termstructures/yieldtermstructure.cpp | 10 -- + ql/termstructures/yieldtermstructure.hpp | 9 -- + 24 files changed, 854 deletions(-) + +commit 0ed4b34cc296c58afd1384f7bf263cd7c0b474f5 +Author: Luigi Ballabio +Date: Wed, 14 Jul 2021 15:21:21 +0200 -commit 4ce19862d32f60cf1b2b34ca8dcd9167d17ad667 -Author: Marcin -Date: Sun, 11 Oct 2020 16:08:27 +0200 + Let tar use the ustar format in `make dist`. + + This allows for files with names so long it's silly. - Renamed to regulatory term structure. + configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) - QuantLib.vcxproj | 2 +- - QuantLib.vcxproj.filters | 2 +- - ql/termstructures/yield/Makefile.am | 1 + - .../yield/{ufrtermstructure.hpp => regulatorytermstructure.hpp} | 8 ++++---- - test-suite/Makefile.am | 4 ++-- - test-suite/{ufrtermstructure.cpp => regulatorytermstructure.cpp} | 4 ++-- - test-suite/{ufrtermstructure.hpp => regulatorytermstructure.hpp} | 4 ++-- - test-suite/testsuite.vcxproj | 4 ++-- - test-suite/testsuite.vcxproj.filters | 4 ++-- - 9 files changed, 17 insertions(+), 16 deletions(-) +commit d297245aa4899202a9b4c23dd418c4800b085a80 +Author: Luigi Ballabio +Date: Thu, 15 Apr 2021 16:25:45 +0200 -commit 067c1f2d8db010ae081564fb6af13eb79880cc56 -Author: Marcin -Date: Sun, 11 Oct 2020 15:53:05 +0200 + Set version to 1.24-dev. - Added FSP check. + configure.ac | 2 +- + ql/version.hpp | 4 ++-- + 2 files changed, 3 insertions(+), 3 deletions(-) - ql/termstructures/yield/ufrtermstructure.hpp | 1 + - test-suite/ufrtermstructure.cpp | 25 +++++++++++++++++++++++++ - test-suite/ufrtermstructure.hpp | 1 + - 3 files changed, 27 insertions(+) +commit 185c91461e94effe187b460713f6fadee77679e9 +Author: Peter Caspers +Date: Wed, 14 Jul 2021 11:14:07 +0200 + + overhaul singleton implementation + + - ensure thread safe initialization when sessions are enabled + - allow global singletons when sessions are enabled + - avoid static initialization order fiasko + - simplify and unify code + + ql/patterns/singleton.hpp | 215 ++++++++++++++++++++-------------------------- + ql/userconfig.hpp | 3 +- + 2 files changed, 95 insertions(+), 123 deletions(-) -commit 06e064293550e04ca97482f8474743f83a8d2ab1 -Author: Marcin -Date: Sun, 11 Oct 2020 15:42:36 +0200 +commit 996e1d6d93fe69f48747b0d8b9b0bd07183e2e31 +Author: klausspanderen +Date: Mon, 12 Jul 2021 21:28:57 +0200 - Fixed failing inspectors' test. + decrease tolerance - test-suite/ufrtermstructure.cpp | 6 ------ - 1 file changed, 6 deletions(-) + test-suite/hestonmodel.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) -commit f2e3369891eb9cabb8a379b4d9351ba3b7a72b04 -Author: Marcin -Date: Sun, 11 Oct 2020 15:40:46 +0200 +commit 6ab8aa4708e3c04db41c71935ed1729bfeb86d6c +Author: klausspanderen +Date: Mon, 12 Jul 2021 21:24:05 +0200 - Added inspectors' tests. + make test case more sensitive - test-suite/ufrtermstructure.cpp | 105 ++++++++++++++++++++++++++++++++++------ - test-suite/ufrtermstructure.hpp | 2 + - 2 files changed, 92 insertions(+), 15 deletions(-) + test-suite/hestonmodel.cpp | 22 ++++++++++++++++++++-- + 1 file changed, 20 insertions(+), 2 deletions(-) -commit 49d9b179220e796af9ab18e9d9932d132dec7b30 -Author: Marcin -Date: Sun, 11 Oct 2020 15:24:33 +0200 +commit 4f585ccec6ff23c9c817201745320e2d6a6d6faa +Author: RalfKonrad +Date: Mon, 12 Jul 2021 14:22:55 +0200 - Added unit test for extrapolated forward. + Adjusted callability prices by discount factor - test-suite/ufrtermstructure.cpp | 70 +++++++++++++++++++++++++++++++++++------ - test-suite/ufrtermstructure.hpp | 3 +- - 2 files changed, 63 insertions(+), 10 deletions(-) + .../discretizedcallablefixedratebond.cpp | 42 +++++++++++++--------- + .../discretizedcallablefixedratebond.hpp | 4 +-- + .../callablebonds/treecallablebondengine.cpp | 16 ++++----- + test-suite/callablebonds.cpp | 5 +-- + 4 files changed, 37 insertions(+), 30 deletions(-) -commit 273fab63aca7ee94cdf2a8a9fce5616e17f6ff01 -Author: Marcin -Date: Sun, 11 Oct 2020 14:55:41 +0200 +commit 08688b06c2413876c1ae6e62499f39a250d84afb +Author: RalfKonrad +Date: Fri, 9 Jul 2021 22:35:34 +0200 - Replaced vector with raw arrays.] + Adjusted test case - test-suite/ufrtermstructure.cpp | 100 ++++++++++++++-------------------------- - 1 file changed, 34 insertions(+), 66 deletions(-) + test-suite/callablebonds.cpp | 44 +++++++++++++++++++++++++++++++------------- + 1 file changed, 31 insertions(+), 13 deletions(-) -commit 5b1dc47ce85c9825ad4588d62e10f7c453d7b8c0 -Author: Marcin -Date: Sun, 11 Oct 2020 14:35:29 +0200 +commit 3cee3d288a64ed19ebaf5dc2c8e2947bade50b2f +Author: RalfKonrad +Date: Thu, 8 Jul 2021 12:34:10 +0200 - Updated unit tests. + Might fix issue 930 - ql/termstructures/yield/ufrtermstructure.hpp | 26 +-- - test-suite/quantlibtestsuite.cpp | 321 ++++++++++++++------------- - test-suite/ufrtermstructure.cpp | 147 ++++++------ - 3 files changed, 242 insertions(+), 252 deletions(-) + ql/experimental/callablebonds/discretizedcallablefixedratebond.cpp | 3 +-- + 1 file changed, 1 insertion(+), 2 deletions(-) -commit 26ae2c4030338555f87d8f9079434f89f21ffde4 -Author: marcin-rybacki -Date: Fri, 9 Oct 2020 22:33:02 +0200 +commit c08afa66925384a973209f945df4f751b6e970a5 +Author: RalfKonrad +Date: Thu, 8 Jul 2021 11:10:21 +0200 - Updated vcxproj files. + Might fix issue 930 - QuantLib.vcxproj | 1 + - QuantLib.vcxproj.filters | 3 + - ql/termstructures/yield/ufrtermstructure.hpp | 0 - test-suite/Makefile.am | 0 - test-suite/quantlibtestsuite.cpp | 0 - test-suite/testsuite.vcxproj | 4 +- - test-suite/testsuite.vcxproj.filters | 14 +- - test-suite/ufrtermstructure.cpp | 424 +++++++++++++-------------- - test-suite/ufrtermstructure.hpp | 0 - 9 files changed, 229 insertions(+), 217 deletions(-) + .../discretizedcallablefixedratebond.cpp | 42 ++++++++++++++-------- + test-suite/callablebonds.cpp | 3 ++ + 2 files changed, 30 insertions(+), 15 deletions(-) -commit 9e2674c1bb8da47f2d9cb53582c69c3cddf7df22 -Author: Marcin -Date: Thu, 1 Oct 2020 12:04:48 +0200 +commit 55eea24f3f0ef8553652528b1085c024fb75dc08 +Author: RalfKonrad +Date: Wed, 7 Jul 2021 09:42:04 +0200 - Updated UFR unit tests. + Might fix issue 930 - test-suite/ufrtermstructure.cpp | 173 +++++++++++++++++++++++----------------- - 1 file changed, 98 insertions(+), 75 deletions(-) + test-suite/callablebonds.cpp | 34 ++++++++++++++++++++++------------ + test-suite/callablebonds.hpp | 2 +- + 2 files changed, 23 insertions(+), 13 deletions(-) -commit f283c34b7116cff42802930b172c964df2f330f0 -Author: Marcin -Date: Mon, 28 Sep 2020 21:29:57 +0200 +commit 5dafbf0b610105293150f17c834f264e7157b260 +Author: RalfKonrad +Date: Wed, 7 Jul 2021 08:33:48 +0200 - Fixed zero yield impl. + Might fix issue 930 - ql/termstructures/yield/ufrtermstructure.hpp | 32 ++++++++++++---------------- - 1 file changed, 14 insertions(+), 18 deletions(-) + test-suite/callablebonds.cpp | 2 -- + 1 file changed, 2 deletions(-) -commit 71d4197652c8cd9a07bc9c5bd0f2d4b593b91a28 -Author: Marcin -Date: Mon, 28 Sep 2020 14:45:23 +0200 +commit e8e85c4e61402c2a33b7a986ee9a904fc6f11ef4 +Author: RalfKonrad +Date: Tue, 6 Jul 2021 20:24:45 +0200 - Added assertion to the UFR test. + Might fix issue 930 - test-suite/ufrtermstructure.cpp | 44 ++++++++++++++++++++++++++++------------- - 1 file changed, 30 insertions(+), 14 deletions(-) + .../discretizedcallablefixedratebond.cpp | 1 + + .../discretizedcallablefixedratebond.hpp | 1 + + test-suite/callablebonds.cpp | 62 ++++++++++++++++++++++ + test-suite/callablebonds.hpp | 2 + + 4 files changed, 66 insertions(+) -commit 9bb32a97565dca577407c9b30c5299200d7e4d13 -Author: Marcin -Date: Mon, 28 Sep 2020 14:32:53 +0200 +commit cbc8b77570142ceb69fcf0f35a2e75ed6b976728 +Author: RalfKonrad +Date: Mon, 5 Jul 2021 20:50:00 +0200 - Added first unit tests for the UFR term structure. + Might fix issue 930 - ql/termstructures/yield/ufrtermstructure.hpp | 2 +- - test-suite/Makefile.am | 2 + - test-suite/quantlibtestsuite.cpp | 1 + - test-suite/ufrtermstructure.cpp | 174 +++++++++++++++++++++++++++ - test-suite/ufrtermstructure.hpp | 36 ++++++ - 5 files changed, 214 insertions(+), 1 deletion(-) + .../discretizedcallablefixedratebond.cpp | 90 ++++++++++++---------- + .../discretizedcallablefixedratebond.hpp | 5 +- + 2 files changed, 54 insertions(+), 41 deletions(-) -commit 689c802dd6cdcb58714a4f3fef42183ee61e795c -Author: Marcin -Date: Mon, 28 Sep 2020 12:19:35 +0200 +commit 4352233656c88651919c038e65f45418099fb5d7 +Author: jackgillett101 +Date: Sat, 3 Jul 2021 23:24:30 +0800 - Changed UFR to be an extension of zero yield structure. + Commenting out slow-running test - ql/termstructures/yield/ufrtermstructure.hpp | 86 ++++++++++++++++++++++++++-- - 1 file changed, 80 insertions(+), 6 deletions(-) + test-suite/hestonslvmodel.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 70e8886bf752aa44ca86cf27b66ad1fee5c08d48 +Author: jackgillett101 +Date: Sat, 3 Jul 2021 21:29:46 +0800 -commit 95f047146d6e3a1def569bc0da114369b6ea7a2e -Author: Marcin -Date: Sun, 27 Sep 2020 13:38:31 +0200 + Using LD instead of PR to remove calculation noise cross-platform - Defined UFR term structure. + test-suite/hestonslvmodel.cpp | 10 +++++++--- + 1 file changed, 7 insertions(+), 3 deletions(-) - ql/termstructures/yield/ufrtermstructure.hpp | 79 ++++++++++++++++++++++++++++ - 1 file changed, 79 insertions(+) +commit cd79c6bda8d1667773f0c122e90b421cf640f901 +Author: jackgillett101 +Date: Fri, 2 Jul 2021 23:37:41 +0800 -commit 7239e1b1eb46a0d8d0bcf01cde8256bf63376665 -Merge: 3c74e5e82 cfe192ccb -Author: Cheng Li -Date: Sun, 27 Sep 2020 14:10:56 +0800 + mixingFactor missing from one instance of the FDM calculator - Merge pull request #8 from lballabio/master - - FEATURE: update from upstream + ql/experimental/models/hestonslvfdmmodel.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) -commit 3af062727343c0c7a4cd9a8cd2e177106fba8e24 -Author: Joseph C Wang -Date: Sun, 20 Sep 2020 18:13:04 +0800 +commit 4de3dbbd8cc651760de29b7a961756a226f92aea +Author: jackgillett101 +Date: Fri, 2 Jul 2021 22:59:56 +0800 - make the check_header.py work in both python 2/3 + Adding slow-running FDM calibration test - tools/check_header.py | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) + test-suite/hestonslvmodel.cpp | 178 ++++++++++++++++++++++++++++++++++++++++++ + test-suite/hestonslvmodel.hpp | 1 + + 2 files changed, 179 insertions(+) diff -Nru quantlib-1.21/cmake/GenerateHeaders.cmake quantlib-1.24/cmake/GenerateHeaders.cmake --- quantlib-1.21/cmake/GenerateHeaders.cmake 1970-01-01 00:00:00.000000000 +0000 +++ quantlib-1.24/cmake/GenerateHeaders.cmake 2021-10-15 15:23:14.000000000 +0000 @@ -0,0 +1,76 @@ +# Generate quantlib.hpp header for the source_dir +function(generate_ql_header source_dir binary_dir) + set(children_hpp "") + set(children_dir "") + file(WRITE "${binary_dir}/ql/quantlib.hpp" + "/* This file is automatically generated; do not edit. */\n\n" + "#include \n" + "#include \n" + "#if !defined(BOOST_ALL_NO_LIB) && defined(BOOST_MSVC)\n" + "# include \n" + "#endif\n\n") + file(GLOB children_hpp RELATIVE ${source_dir} "${source_dir}/ql/*.hpp") + list(FILTER children_hpp EXCLUDE REGEX "auto_link.hpp") + list(FILTER children_hpp EXCLUDE REGEX "config.*.hpp") + list(FILTER children_hpp EXCLUDE REGEX "mathconstants.hpp") + list(FILTER children_hpp EXCLUDE REGEX "qldefines.hpp") + list(FILTER children_hpp EXCLUDE REGEX "quantlib.hpp") + list(FILTER children_hpp EXCLUDE REGEX "version.hpp") + foreach(child ${children_hpp}) + file(APPEND "${binary_dir}/ql/quantlib.hpp" "#include <${child}>\n") + endforeach() + file(APPEND "${binary_dir}/ql/quantlib.hpp" "\n") + file(GLOB children_dir RELATIVE ${source_dir} "${source_dir}/ql/*") + list(FILTER children_dir EXCLUDE REGEX "CMakeFiles") + list(FILTER children_dir EXCLUDE REGEX "^ql/\\..*") + foreach(child ${children_dir}) + if (IS_DIRECTORY "${source_dir}/${child}") + file(APPEND "${binary_dir}/ql/quantlib.hpp" "#include <${child}/all.hpp>\n") + endif() + endforeach() +endfunction() + +# Generate all.hpp for the source_dir and recurse down the path +function(generate_dir_headers source_dir binary_dir) + set(children_hpp "") + set(children_dir "") + set(children_all "") + file(GLOB children_hpp RELATIVE ${source_dir} "${source_dir}/*.hpp") + list(FILTER children_hpp EXCLUDE REGEX "all.hpp") + file(GLOB children_dir RELATIVE ${source_dir} "${source_dir}/*") + list(FILTER children_dir EXCLUDE REGEX "CMakeFiles") + list(FILTER children_dir EXCLUDE REGEX "^\\..*") + foreach(child ${children_hpp}) + list(APPEND children_all "${source_dir}/${child}") + endforeach() + foreach(child ${children_dir}) + if (IS_DIRECTORY "${source_dir}/${child}") + list(APPEND children_all "${source_dir}/${child}/all.hpp") + # Recurse down this subpath + generate_dir_headers("${source_dir}/${child}" "${binary_dir}/${child}") + endif() + endforeach() + if (children_all) + file(WRITE "${binary_dir}/all.hpp" + "/* This file is automatically generated; do not edit. */\n\n") + foreach(child ${children_all}) + file(RELATIVE_PATH all_path ${SOURCE_DIR} ${child}) + file(APPEND "${binary_dir}/all.hpp" "#include <${all_path}>\n") + endforeach() + endif() +endfunction() + +# Call generate_dir_headers for each directory at this top level (ql/) +function(generate_all_headers source_dir binary_dir) + file(GLOB children RELATIVE ${source_dir} "${source_dir}/*") + list(FILTER children EXCLUDE REGEX "^\\..*") + foreach(child ${children}) + if (IS_DIRECTORY "${source_dir}/${child}") + generate_dir_headers("${source_dir}/${child}" "${binary_dir}/${child}") + endif() + endforeach() +endfunction() + +# Entry point +generate_ql_header(${SOURCE_DIR} ${BINARY_DIR}) +generate_all_headers("${SOURCE_DIR}/ql" "${BINARY_DIR}/ql") diff -Nru quantlib-1.21/cmake/Platform.cmake quantlib-1.24/cmake/Platform.cmake --- quantlib-1.21/cmake/Platform.cmake 1970-01-01 00:00:00.000000000 +0000 +++ quantlib-1.24/cmake/Platform.cmake 2021-10-15 15:23:14.000000000 +0000 @@ -0,0 +1,25 @@ +# Platform-specific flags and settings +if (MSVC) + # See cmake policy CMP00091 + # One of "MultiThreaded", "MultiThreadedDebug", "MultiThreadedDLL", "MultiThreadedDebugDLL" + set(CMAKE_MSVC_RUNTIME_LIBRARY + "MultiThreaded$<$:Debug>$<$:DLL>") + + # Export all symbols so MSVC can populate the .lib and .dll + if (BUILD_SHARED_LIBS) + # Temp: disable DLL builds on MSVC + message(FATAL_ERROR + "Shared library (DLL) builds for QuantLib on MSVC are not supported") + set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON) + endif() + + add_compile_definitions(NOMINMAX) + + # /wd4267 + # Suppress warnings: assignment of 64-bit value to 32-bit QuantLib::Integer (x64) + + # /wd26812 + # Suppress warnings: "Prefer enum class over enum" (Enum.3) + + add_compile_options(/wd4267 /wd26812) +endif() diff -Nru quantlib-1.21/cmake/quantlib.cmake quantlib-1.24/cmake/quantlib.cmake --- quantlib-1.21/cmake/quantlib.cmake 2019-12-27 10:54:13.000000000 +0000 +++ quantlib-1.24/cmake/quantlib.cmake 1970-01-01 00:00:00.000000000 +0000 @@ -1,71 +0,0 @@ -cmake_minimum_required(VERSION 2.8) - -macro(get_quantlib_library_name QL_OUTPUT_NAME) - message(STATUS "QuantLib library name tokens:") - - # MSVC: Give QuantLib built library different names following code in 'ql/autolink.hpp' - if(MSVC) - - # - platform - if("${CMAKE_SIZEOF_VOID_P}" EQUAL "8") - set(QL_LIB_PLATFORM "-x64") - endif() - message(STATUS " - Platform: ${QL_LIB_PLATFORM}") - - # - thread linkage - set(QL_LIB_THREAD_OPT "-mt") # _MT is defined for /MD and /MT runtimes (https://docs.microsoft.com/es-es/cpp/build/reference/md-mt-ld-use-run-time-library) - message(STATUS " - Thread opt: ${QL_LIB_THREAD_OPT}") - - # - static/dynamic linkage - if(${MSVC_RUNTIME} STREQUAL "static") - set(QL_LIB_RT_OPT "-s") - set(CMAKE_DEBUG_POSTFIX "gd") - else() - set(CMAKE_DEBUG_POSTFIX "-gd") - endif() - message(STATUS " - Linkage opt: ${QL_LIB_RT_OPT}") - - set(${QL_OUTPUT_NAME} "QuantLib${QL_LIB_PLATFORM}${QL_LIB_THREAD_OPT}${QL_LIB_RT_OPT}") - else() - set(${QL_OUTPUT_NAME} "QuantLib") - endif() - message(STATUS "QuantLib library name: ${${QL_OUTPUT_NAME}}[${CMAKE_DEBUG_POSTFIX}]") -endmacro(get_quantlib_library_name) - -macro(configure_msvc_runtime) - # Credit: https://stackoverflow.com/questions/10113017/setting-the-msvc-runtime-in-cmake - if(MSVC) - # Default to dynamically-linked runtime. - if("${MSVC_RUNTIME}" STREQUAL "") - set(MSVC_RUNTIME "dynamic") - endif() - - # Set compiler options. - set(variables - CMAKE_C_FLAGS_DEBUG - CMAKE_C_FLAGS_MINSIZEREL - CMAKE_C_FLAGS_RELEASE - CMAKE_C_FLAGS_RELWITHDEBINFO - CMAKE_CXX_FLAGS_DEBUG - CMAKE_CXX_FLAGS_MINSIZEREL - CMAKE_CXX_FLAGS_RELEASE - CMAKE_CXX_FLAGS_RELWITHDEBINFO - ) - - if(${MSVC_RUNTIME} STREQUAL "static") - message(STATUS "MSVC -> forcing use of statically-linked runtime.") - foreach(variable ${variables}) - if(${variable} MATCHES "/MD") - string(REGEX REPLACE "/MD" "/MT" ${variable} "${${variable}}") - endif() - endforeach() - else() - message(STATUS "MSVC -> forcing use of dynamically-linked runtime." ) - foreach(variable ${variables}) - if(${variable} MATCHES "/MT") - string(REGEX REPLACE "/MT" "/MD" ${variable} "${${variable}}") - endif() - endforeach() - endif() - endif() -endmacro() diff -Nru quantlib-1.21/CMakeLists.txt quantlib-1.24/CMakeLists.txt --- quantlib-1.21/CMakeLists.txt 2020-06-17 14:46:04.000000000 +0000 +++ quantlib-1.24/CMakeLists.txt 2021-10-17 08:01:02.000000000 +0000 @@ -1,57 +1,185 @@ -cmake_minimum_required() +cmake_minimum_required(VERSION 3.15.0) -project(QuantLib) +# For MSVC RUNTIME LIBRARY, need CMP0091=NEW and cmake 3.15+ +cmake_policy(SET CMP0091 NEW) -include(CTest) -include(${CMAKE_CURRENT_LIST_DIR}/cmake/quantlib.cmake) +# Version info +set(QUANTLIB_VERSION_MAJOR 1) +set(QUANTLIB_VERSION_MINOR 24) +set(QUANTLIB_VERSION_PATCH 0) +set(QUANTLIB_VERSION ${QUANTLIB_VERSION_MAJOR}.${QUANTLIB_VERSION_MINOR}.${QUANTLIB_VERSION_PATCH}) + +# Project Info +set(PACKAGE_NAME "QuantLib") +set(PACKAGE_VERSION "${QUANTLIB_VERSION}") +set(PACKAGE_VERSION_HEX "0x012400f0") +set(PACKAGE_STRING "${PACKAGE_NAME} ${PACKAGE_VERSION}") +set(PACKAGE_TARNAME "${PACKAGE_NAME}-${PACKAGE_VERSION}") +set(PACKAGE_BUGREPORT "https://github.com/lballabio/QuantLib/issues/") + +# Default build type for single-config generators (set this before project() command) +# For multi-config generators, such as Visual Studio, use: cmake --build . --config= +if (NOT CMAKE_BUILD_TYPE OR CMAKE_BUILD_TYPE STREQUAL "") + set(CMAKE_BUILD_TYPE "Release" CACHE + STRING "Build type for single-config generators" FORCE) +endif() -option(BUILD_SHARED_LIBS "Build shared libraries" ${UNIX}) -option(USE_BOOST_DYNAMIC_LIBRARIES "Use the shared version of Boost libraries" ${UNIX}) -if (USE_BOOST_DYNAMIC_LIBRARIES) - add_definitions(-DBOOST_ALL_DYN_LINK) -else() - set(Boost_USE_STATIC_LIBS ON) -endif() - -if (MSVC) - set(MSVC_RUNTIME "dynamic" CACHE STRING "MSVC runtime to link") - set_property(CACHE MSVC_RUNTIME PROPERTY STRINGS static dynamic) - configure_msvc_runtime() - - if(${MSVC_RUNTIME} STREQUAL "static") - if(USE_BOOST_DYNAMIC_LIBRARIES) - message(FATAL_ERROR "Use of shared Boost libraries while compiling with static runtime seems not be a good idea.") - endif() - set(Boost_USE_STATIC_RUNTIME ON) - endif() +project(${PACKAGE_NAME} LANGUAGES CXX DESCRIPTION "The QuantLib C++ Library") + +# Path for package-local cmake modules +set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH}) + +# Installation directories +set(QL_INSTALL_BINDIR "bin" CACHE STRING "Installation directory for executables") +set(QL_INSTALL_LIBDIR "lib" CACHE STRING "Installation directory for libraries") +set(QL_INSTALL_INCLUDEDIR "include" CACHE STRING "Installation directory for headers") +set(QL_INSTALL_EXAMPLESDIR "lib/QuantLib/examples" CACHE STRING + "Installation directory for examples") + +# Options +option(QL_BUILD_BENCHMARK "Build benchmark" ON) +option(QL_BUILD_EXAMPLES "Build examples" ON) +option(QL_BUILD_TEST_SUITE "Build test suite" ON) +option(QL_ENABLE_OPENMP "Detect and use OpenMP" OFF) +option(QL_ENABLE_PARALLEL_UNIT_TEST_RUNNER "Enable the parallel unit test runner" OFF) +option(QL_ENABLE_SESSIONS "Singletons return different instances for different sessions" OFF) +option(QL_ENABLE_SINGLETON_THREAD_SAFE_INIT "Enable thread-safe singleton initialization" OFF) +option(QL_ENABLE_THREAD_SAFE_OBSERVER_PATTERN "Enable the thread-safe observer pattern" OFF) +option(QL_ENABLE_TRACING "Tracing messages should be allowed" OFF) +option(QL_ERROR_FUNCTIONS "Error messages should include current function information" OFF) +option(QL_ERROR_LINES "Error messages should include file and line information" OFF) +option(QL_EXTRA_SAFETY_CHECKS "Extra safety checks should be performed" OFF) +option(QL_HIGH_RESOLUTION_DATE "Enable date resolution down to microseconds" OFF) +option(QL_INSTALL_BENCHMARK "Install benchmark" ON) +option(QL_INSTALL_EXAMPLES "Install examples" ON) +option(QL_INSTALL_TEST_SUITE "Install test suite" ON) +option(QL_TAGGED_LAYOUT "Library names use layout tags" ${MSVC}) +option(QL_USE_DISPOSABLE "Use the Disposable class template. Not needed for C++11" OFF) +option(QL_USE_INDEXED_COUPON "Use indexed coupons instead of par coupons" OFF) +option(QL_USE_STD_CLASSES "Enable all QL_USE_STD_ options" OFF) +option(QL_USE_STD_SHARED_PTR "Use standard smart pointers instead of Boost ones" OFF) +option(QL_USE_STD_UNIQUE_PTR "Use std::unique_ptr instead of std::auto_ptr" ON) +option(QL_USE_STD_FUNCTION "Use std::function and std::bind instead of Boost ones" OFF) +option(QL_USE_STD_TUPLE "Use std::tuple instead of boost::tuple" OFF) + +# Convenience option to activate all STD options +if (QL_USE_STD_CLASSES) + set(QL_USE_STD_SHARED_PTR ON) + set(QL_USE_STD_UNIQUE_PTR ON) + set(QL_USE_STD_FUNCTION ON) + set(QL_USE_STD_TUPLE ON) +endif() + +# Project shared libs ON for UNIX +if (NOT DEFINED BUILD_SHARED_LIBS) + set(BUILD_SHARED_LIBS ${UNIX}) +endif() - # Remove warnings - add_definitions(-D_SCL_SECURE_NO_WARNINGS -D_CRT_SECURE_NO_WARNINGS) +# Boost static libs ON for MSVC +if (NOT DEFINED Boost_USE_STATIC_LIBS) + set(Boost_USE_STATIC_LIBS ${MSVC}) endif() -# On single-configuration builds, select a default build type that -# gives the same compilation flags as a default autotools build. -if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) - set(CMAKE_BUILD_TYPE "RelWithDebInfo") +# Boost static runtime ON for MSVC +if (NOT DEFINED Boost_USE_STATIC_RUNTIME) + set(Boost_USE_STATIC_RUNTIME ${MSVC}) endif() -# to reference headers via , we need to add the root -# directory of the project to includes -include_directories(${CMAKE_CURRENT_SOURCE_DIR}) +# Boost thread and unit_test_framework needed for tests and benchmark +find_package(Boost 1.58.0 REQUIRED COMPONENTS thread unit_test_framework) + +# Avoid using Boost auto-linking +add_compile_definitions(BOOST_ALL_NO_LIB) -find_package(Boost 1.48.0) -if (Boost_FOUND) - include_directories(${Boost_INCLUDE_DIRS}) -endif (Boost_FOUND) +if (QL_ENABLE_OPENMP) + find_package(OpenMP REQUIRED) +endif() +# Parallel test runner needs library rt on *nix for shm_open, etc. +if (QL_ENABLE_PARALLEL_UNIT_TEST_RUNNER AND UNIX AND NOT APPLE) + find_library(RT_LIBRARY rt REQUIRED) +endif() + +# Require C++11 or higher +if (NOT DEFINED CMAKE_CXX_STANDARD) + set(CMAKE_CXX_STANDARD 11) +elseif(CMAKE_CXX_STANDARD LESS 11) + message(FATAL_ERROR "Please specify CMAKE_CXX_STANDARD of 11 or higher") +endif() +if (NOT DEFINED CMAKE_CXX_STANDARD_REQUIRED) + set(CMAKE_CXX_STANDARD_REQUIRED ON) +endif() +# Avoid use of compiler language extensions, i.e. -std=c++11 not -std=gnu++11 +if (NOT DEFINED CMAKE_CXX_EXTENSIONS) + set(CMAKE_CXX_EXTENSIONS FALSE) +endif() + +# If available, use PIC for shared libs and PIE for executables +if (NOT DEFINED CMAKE_POSITION_INDEPENDENT_CODE) + set(CMAKE_POSITION_INDEPENDENT_CODE ON) +endif() +if (CMAKE_POSITION_INDEPENDENT_CODE) + # cmake policy CMP0083: add PIE support if possible (need cmake 3.14) + include(CheckPIESupported) + check_pie_supported() +endif() + +# Configure files +set(QL_HAVE_CONFIG_H ON) +set(QL_VERSION ${PACKAGE_VERSION}) +set(QL_HEX_VERSION ${PACKAGE_VERSION_HEX}) +configure_file(ql/config.hpp.cfg ql/config.hpp @ONLY) +configure_file(ql/qldefines.hpp.cfg ql/qldefines.hpp @ONLY) +configure_file(ql/version.hpp.cfg ql/version.hpp @ONLY) + +# Check for library name layout tagging +if (QL_TAGGED_LAYOUT) + set(DEBUG_POSTFIX "-mt") + set(RELEASE_POSTFIX "-mt") + if (NOT BUILD_SHARED_LIBS) + set(DEBUG_POSTFIX ${DEBUG_POSTFIX}-sgd) + set(RELEASE_POSTFIX ${RELEASE_POSTFIX}-s) + else() + set(DEBUG_POSTFIX ${DEBUG_POSTFIX}-gd) + endif() + if (${CMAKE_SIZEOF_VOID_P} EQUAL 8) + set(DEBUG_POSTFIX ${DEBUG_POSTFIX}-x64) + set(RELEASE_POSTFIX ${RELEASE_POSTFIX}-x64) + endif() + set(CMAKE_DEBUG_POSTFIX ${DEBUG_POSTFIX}) + set(CMAKE_RELEASE_POSTFIX ${RELEASE_POSTFIX}) + set(CMAKE_RELWITHDEBINFO_POSTFIX ${RELEASE_POSTFIX}) + set(CMAKE_MINSIZEREL_POSTFIX ${RELEASE_POSTFIX}) +endif() + +include(CTest) +include(Platform) + +# Add subdirectories add_subdirectory(ql) -add_subdirectory(Examples) -add_subdirectory(test-suite) +if (QL_BUILD_EXAMPLES) + add_subdirectory(Examples) +endif() +if (QL_BUILD_TEST_SUITE OR QL_BUILD_BENCHMARK) + add_subdirectory(test-suite) +endif() -# -# Copy across the ANSI config file into the build directory. Users -# need to change userconfig.hpp if they require different settings. -# -configure_file(${CMAKE_CURRENT_SOURCE_DIR}/ql/config.ansi.hpp - ${PROJECT_BINARY_DIR}/config.hpp COPYONLY) -install(FILES ${PROJECT_BINARY_DIR}/config.hpp DESTINATION include/ql) +# CPack support (make package, make package_source) +set(CPACK_PACKAGE_VERSION_MAJOR ${QUANTLIB_VERSION_MAJOR}) +set(CPACK_PACKAGE_VERSION_MINOR ${QUANTLIB_VERSION_MINOR}) +set(CPACK_PACKAGE_VERSION_PATCH ${QUANTLIB_VERSION_PATCH}) +set(CPACK_PACKAGE_FILE_NAME ${PACKAGE_NAME}-${PACKAGE_VERSION}) +set(CPACK_GENERATOR "TGZ" "ZIP" "7Z") +set(CPACK_SOURCE_PACKAGE_FILE_NAME ${PACKAGE_NAME}-${PACKAGE_VERSION}) +set(CPACK_SOURCE_GENERATOR "TGZ" "ZIP" "7Z") +set(CPACK_SOURCE_IGNORE_FILES + "~$" + "\\\\.swp$" + "/[Bb]uild" + "/\\\\.app" + "/\\\\.cla" + "/\\\\.cod" + "/\\\\.git" + "/\\\\.lgt" + "/\\\\.mis") +include(CPack) diff -Nru quantlib-1.21/config/config.guess quantlib-1.24/config/config.guess --- quantlib-1.21/config/config.guess 2020-04-24 13:39:00.000000000 +0000 +++ quantlib-1.24/config/config.guess 2021-07-14 13:19:58.000000000 +0000 @@ -1,8 +1,8 @@ #! /bin/sh # Attempt to guess a canonical system name. -# Copyright 1992-2020 Free Software Foundation, Inc. +# Copyright 1992-2021 Free Software Foundation, Inc. -timestamp='2020-01-01' +timestamp='2021-01-25' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by @@ -27,12 +27,12 @@ # Originally written by Per Bothner; maintained since 2000 by Ben Elliston. # # You can get the latest version of this script from: -# https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess +# https://git.savannah.gnu.org/cgit/config.git/plain/config.guess # # Please send patches to . -me=`echo "$0" | sed -e 's,.*/,,'` +me=$(echo "$0" | sed -e 's,.*/,,') usage="\ Usage: $0 [OPTION] @@ -50,7 +50,7 @@ GNU config.guess ($timestamp) Originally written by Per Bothner. -Copyright 1992-2020 Free Software Foundation, Inc. +Copyright 1992-2021 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." @@ -103,7 +103,7 @@ test "$tmp" && return 0 : "${TMPDIR=/tmp}" # shellcheck disable=SC2039 - { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || + { tmp=$( (umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null) && test -n "$tmp" && test -d "$tmp" ; } || { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir "$tmp" 2>/dev/null) ; } || { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir "$tmp" 2>/dev/null) && echo "Warning: creating insecure temp directory" >&2 ; } || { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } @@ -131,16 +131,14 @@ PATH=$PATH:/.attbin ; export PATH fi -UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown -UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown -UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown -UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown +UNAME_MACHINE=$( (uname -m) 2>/dev/null) || UNAME_MACHINE=unknown +UNAME_RELEASE=$( (uname -r) 2>/dev/null) || UNAME_RELEASE=unknown +UNAME_SYSTEM=$( (uname -s) 2>/dev/null) || UNAME_SYSTEM=unknown +UNAME_VERSION=$( (uname -v) 2>/dev/null) || UNAME_VERSION=unknown case "$UNAME_SYSTEM" in Linux|GNU|GNU/*) - # If the system lacks a compiler, then just pick glibc. - # We could probably try harder. - LIBC=gnu + LIBC=unknown set_cc_for_build cat <<-EOF > "$dummy.c" @@ -149,17 +147,29 @@ LIBC=uclibc #elif defined(__dietlibc__) LIBC=dietlibc - #else + #elif defined(__GLIBC__) LIBC=gnu + #else + #include + /* First heuristic to detect musl libc. */ + #ifdef __DEFINED_va_list + LIBC=musl + #endif #endif EOF - eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`" + eval "$($CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g')" - # If ldd exists, use it to detect musl libc. - if command -v ldd >/dev/null && \ - ldd --version 2>&1 | grep -q ^musl - then - LIBC=musl + # Second heuristic to detect musl libc. + if [ "$LIBC" = unknown ] && + command -v ldd >/dev/null && + ldd --version 2>&1 | grep -q ^musl; then + LIBC=musl + fi + + # If the system lacks a compiler, then just pick glibc. + # We could probably try harder. + if [ "$LIBC" = unknown ]; then + LIBC=gnu fi ;; esac @@ -178,20 +188,20 @@ # # Note: NetBSD doesn't particularly care about the vendor # portion of the name. We always set it to "unknown". - sysctl="sysctl -n hw.machine_arch" - UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \ - "/sbin/$sysctl" 2>/dev/null || \ - "/usr/sbin/$sysctl" 2>/dev/null || \ - echo unknown)` + UNAME_MACHINE_ARCH=$( (uname -p 2>/dev/null || \ + /sbin/sysctl -n hw.machine_arch 2>/dev/null || \ + /usr/sbin/sysctl -n hw.machine_arch 2>/dev/null || \ + echo unknown)) case "$UNAME_MACHINE_ARCH" in + aarch64eb) machine=aarch64_be-unknown ;; armeb) machine=armeb-unknown ;; arm*) machine=arm-unknown ;; sh3el) machine=shl-unknown ;; sh3eb) machine=sh-unknown ;; sh5el) machine=sh5le-unknown ;; earmv*) - arch=`echo "$UNAME_MACHINE_ARCH" | sed -e 's,^e\(armv[0-9]\).*$,\1,'` - endian=`echo "$UNAME_MACHINE_ARCH" | sed -ne 's,^.*\(eb\)$,\1,p'` + arch=$(echo "$UNAME_MACHINE_ARCH" | sed -e 's,^e\(armv[0-9]\).*$,\1,') + endian=$(echo "$UNAME_MACHINE_ARCH" | sed -ne 's,^.*\(eb\)$,\1,p') machine="${arch}${endian}"-unknown ;; *) machine="$UNAME_MACHINE_ARCH"-unknown ;; @@ -222,7 +232,7 @@ case "$UNAME_MACHINE_ARCH" in earm*) expr='s/^earmv[0-9]/-eabi/;s/eb$//' - abi=`echo "$UNAME_MACHINE_ARCH" | sed -e "$expr"` + abi=$(echo "$UNAME_MACHINE_ARCH" | sed -e "$expr") ;; esac # The OS release @@ -235,7 +245,7 @@ release='-gnu' ;; *) - release=`echo "$UNAME_RELEASE" | sed -e 's/[-_].*//' | cut -d. -f1,2` + release=$(echo "$UNAME_RELEASE" | sed -e 's/[-_].*//' | cut -d. -f1,2) ;; esac # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: @@ -244,15 +254,15 @@ echo "$machine-${os}${release}${abi-}" exit ;; *:Bitrig:*:*) - UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` + UNAME_MACHINE_ARCH=$(arch | sed 's/Bitrig.//') echo "$UNAME_MACHINE_ARCH"-unknown-bitrig"$UNAME_RELEASE" exit ;; *:OpenBSD:*:*) - UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` + UNAME_MACHINE_ARCH=$(arch | sed 's/OpenBSD.//') echo "$UNAME_MACHINE_ARCH"-unknown-openbsd"$UNAME_RELEASE" exit ;; *:LibertyBSD:*:*) - UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'` + UNAME_MACHINE_ARCH=$(arch | sed 's/^.*BSD\.//') echo "$UNAME_MACHINE_ARCH"-unknown-libertybsd"$UNAME_RELEASE" exit ;; *:MidnightBSD:*:*) @@ -288,17 +298,17 @@ alpha:OSF1:*:*) case $UNAME_RELEASE in *4.0) - UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` + UNAME_RELEASE=$(/usr/sbin/sizer -v | awk '{print $3}') ;; *5.*) - UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` + UNAME_RELEASE=$(/usr/sbin/sizer -v | awk '{print $4}') ;; esac # According to Compaq, /usr/sbin/psrinfo has been available on # OSF/1 and Tru64 systems produced since 1995. I hope that # covers most systems running today. This code pipes the CPU # types through head -n 1, so we only detect the type of CPU 0. - ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` + ALPHA_CPU_TYPE=$(/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1) case "$ALPHA_CPU_TYPE" in "EV4 (21064)") UNAME_MACHINE=alpha ;; @@ -336,7 +346,7 @@ # A Tn.n version is a released field test version. # A Xn.n version is an unreleased experimental baselevel. # 1.2 uses "1.2" for uname -r. - echo "$UNAME_MACHINE"-dec-osf"`echo "$UNAME_RELEASE" | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`" + echo "$UNAME_MACHINE"-dec-osf"$(echo "$UNAME_RELEASE" | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz)" # Reset EXIT trap before exiting to avoid spurious non-zero exit code. exitcode=$? trap '' 0 @@ -370,7 +380,7 @@ exit ;; Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. - if test "`(/bin/universe) 2>/dev/null`" = att ; then + if test "$( (/bin/universe) 2>/dev/null)" = att ; then echo pyramid-pyramid-sysv3 else echo pyramid-pyramid-bsd @@ -383,17 +393,17 @@ echo sparc-icl-nx6 exit ;; DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) - case `/usr/bin/uname -p` in + case $(/usr/bin/uname -p) in sparc) echo sparc-icl-nx7; exit ;; esac ;; s390x:SunOS:*:*) - echo "$UNAME_MACHINE"-ibm-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`" + echo "$UNAME_MACHINE"-ibm-solaris2"$(echo "$UNAME_RELEASE" | sed -e 's/[^.]*//')" exit ;; sun4H:SunOS:5.*:*) - echo sparc-hal-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" + echo sparc-hal-solaris2"$(echo "$UNAME_RELEASE"|sed -e 's/[^.]*//')" exit ;; sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) - echo sparc-sun-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`" + echo sparc-sun-solaris2"$(echo "$UNAME_RELEASE" | sed -e 's/[^.]*//')" exit ;; i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) echo i386-pc-auroraux"$UNAME_RELEASE" @@ -404,7 +414,7 @@ # If there is a compiler, see if it is configured for 64-bit objects. # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. # This test works for both compilers. - if [ "$CC_FOR_BUILD" != no_compiler_found ]; then + if test "$CC_FOR_BUILD" != no_compiler_found; then if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null @@ -412,30 +422,30 @@ SUN_ARCH=x86_64 fi fi - echo "$SUN_ARCH"-pc-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" + echo "$SUN_ARCH"-pc-solaris2"$(echo "$UNAME_RELEASE"|sed -e 's/[^.]*//')" exit ;; sun4*:SunOS:6*:*) # According to config.sub, this is the proper way to canonicalize # SunOS6. Hard to guess exactly what SunOS6 will be like, but # it's likely to be more like Solaris than SunOS4. - echo sparc-sun-solaris3"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" + echo sparc-sun-solaris3"$(echo "$UNAME_RELEASE"|sed -e 's/[^.]*//')" exit ;; sun4*:SunOS:*:*) - case "`/usr/bin/arch -k`" in + case "$(/usr/bin/arch -k)" in Series*|S4*) - UNAME_RELEASE=`uname -v` + UNAME_RELEASE=$(uname -v) ;; esac # Japanese Language versions have a version number like `4.1.3-JL'. - echo sparc-sun-sunos"`echo "$UNAME_RELEASE"|sed -e 's/-/_/'`" + echo sparc-sun-sunos"$(echo "$UNAME_RELEASE"|sed -e 's/-/_/')" exit ;; sun3*:SunOS:*:*) echo m68k-sun-sunos"$UNAME_RELEASE" exit ;; sun*:*:4.2BSD:*) - UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` + UNAME_RELEASE=$( (sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null) test "x$UNAME_RELEASE" = x && UNAME_RELEASE=3 - case "`/bin/arch`" in + case "$(/bin/arch)" in sun3) echo m68k-sun-sunos"$UNAME_RELEASE" ;; @@ -515,8 +525,8 @@ } EOF $CC_FOR_BUILD -o "$dummy" "$dummy.c" && - dummyarg=`echo "$UNAME_RELEASE" | sed -n 's/\([0-9]*\).*/\1/p'` && - SYSTEM_NAME=`"$dummy" "$dummyarg"` && + dummyarg=$(echo "$UNAME_RELEASE" | sed -n 's/\([0-9]*\).*/\1/p') && + SYSTEM_NAME=$("$dummy" "$dummyarg") && { echo "$SYSTEM_NAME"; exit; } echo mips-mips-riscos"$UNAME_RELEASE" exit ;; @@ -543,11 +553,11 @@ exit ;; AViiON:dgux:*:*) # DG/UX returns AViiON for all architectures - UNAME_PROCESSOR=`/usr/bin/uname -p` - if [ "$UNAME_PROCESSOR" = mc88100 ] || [ "$UNAME_PROCESSOR" = mc88110 ] + UNAME_PROCESSOR=$(/usr/bin/uname -p) + if test "$UNAME_PROCESSOR" = mc88100 || test "$UNAME_PROCESSOR" = mc88110 then - if [ "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx ] || \ - [ "$TARGET_BINARY_INTERFACE"x = x ] + if test "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx || \ + test "$TARGET_BINARY_INTERFACE"x = x then echo m88k-dg-dgux"$UNAME_RELEASE" else @@ -571,17 +581,17 @@ echo m68k-tektronix-bsd exit ;; *:IRIX*:*:*) - echo mips-sgi-irix"`echo "$UNAME_RELEASE"|sed -e 's/-/_/g'`" + echo mips-sgi-irix"$(echo "$UNAME_RELEASE"|sed -e 's/-/_/g')" exit ;; ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id - exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' + exit ;; # Note that: echo "'$(uname -s)'" gives 'AIX ' i*86:AIX:*:*) echo i386-ibm-aix exit ;; ia64:AIX:*:*) - if [ -x /usr/bin/oslevel ] ; then - IBM_REV=`/usr/bin/oslevel` + if test -x /usr/bin/oslevel ; then + IBM_REV=$(/usr/bin/oslevel) else IBM_REV="$UNAME_VERSION.$UNAME_RELEASE" fi @@ -601,7 +611,7 @@ exit(0); } EOF - if $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` + if $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=$("$dummy") then echo "$SYSTEM_NAME" else @@ -614,15 +624,15 @@ fi exit ;; *:AIX:*:[4567]) - IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` + IBM_CPU_ID=$(/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }') if /usr/sbin/lsattr -El "$IBM_CPU_ID" | grep ' POWER' >/dev/null 2>&1; then IBM_ARCH=rs6000 else IBM_ARCH=powerpc fi - if [ -x /usr/bin/lslpp ] ; then - IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc | - awk -F: '{ print $3 }' | sed s/[0-9]*$/0/` + if test -x /usr/bin/lslpp ; then + IBM_REV=$(/usr/bin/lslpp -Lqc bos.rte.libc | + awk -F: '{ print $3 }' | sed s/[0-9]*$/0/) else IBM_REV="$UNAME_VERSION.$UNAME_RELEASE" fi @@ -650,14 +660,14 @@ echo m68k-hp-bsd4.4 exit ;; 9000/[34678]??:HP-UX:*:*) - HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'` + HPUX_REV=$(echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//') case "$UNAME_MACHINE" in 9000/31?) HP_ARCH=m68000 ;; 9000/[34]??) HP_ARCH=m68k ;; 9000/[678][0-9][0-9]) - if [ -x /usr/bin/getconf ]; then - sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` - sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` + if test -x /usr/bin/getconf; then + sc_cpu_version=$(/usr/bin/getconf SC_CPU_VERSION 2>/dev/null) + sc_kernel_bits=$(/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null) case "$sc_cpu_version" in 523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0 528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1 @@ -669,7 +679,7 @@ esac ;; esac fi - if [ "$HP_ARCH" = "" ]; then + if test "$HP_ARCH" = ""; then set_cc_for_build sed 's/^ //' << EOF > "$dummy.c" @@ -704,11 +714,11 @@ exit (0); } EOF - (CCOPTS="" $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null) && HP_ARCH=`"$dummy"` + (CCOPTS="" $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null) && HP_ARCH=$("$dummy") test -z "$HP_ARCH" && HP_ARCH=hppa fi ;; esac - if [ "$HP_ARCH" = hppa2.0w ] + if test "$HP_ARCH" = hppa2.0w then set_cc_for_build @@ -732,7 +742,7 @@ echo "$HP_ARCH"-hp-hpux"$HPUX_REV" exit ;; ia64:HP-UX:*:*) - HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'` + HPUX_REV=$(echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//') echo ia64-hp-hpux"$HPUX_REV" exit ;; 3050*:HI-UX:*:*) @@ -762,7 +772,7 @@ exit (0); } EOF - $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` && + $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=$("$dummy") && { echo "$SYSTEM_NAME"; exit; } echo unknown-hitachi-hiuxwe2 exit ;; @@ -782,7 +792,7 @@ echo hppa1.0-hp-osf exit ;; i*86:OSF1:*:*) - if [ -x /usr/sbin/sysversion ] ; then + if test -x /usr/sbin/sysversion ; then echo "$UNAME_MACHINE"-unknown-osf1mk else echo "$UNAME_MACHINE"-unknown-osf1 @@ -831,14 +841,14 @@ echo craynv-cray-unicosmp"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' exit ;; F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) - FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz` - FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` - FUJITSU_REL=`echo "$UNAME_RELEASE" | sed -e 's/ /_/'` + FUJITSU_PROC=$(uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz) + FUJITSU_SYS=$(uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///') + FUJITSU_REL=$(echo "$UNAME_RELEASE" | sed -e 's/ /_/') echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; 5000:UNIX_System_V:4.*:*) - FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` - FUJITSU_REL=`echo "$UNAME_RELEASE" | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'` + FUJITSU_SYS=$(uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///') + FUJITSU_REL=$(echo "$UNAME_RELEASE" | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/') echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) @@ -851,25 +861,25 @@ echo "$UNAME_MACHINE"-unknown-bsdi"$UNAME_RELEASE" exit ;; arm:FreeBSD:*:*) - UNAME_PROCESSOR=`uname -p` + UNAME_PROCESSOR=$(uname -p) set_cc_for_build if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_PCS_VFP then - echo "${UNAME_PROCESSOR}"-unknown-freebsd"`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`"-gnueabi + echo "${UNAME_PROCESSOR}"-unknown-freebsd"$(echo ${UNAME_RELEASE}|sed -e 's/[-(].*//')"-gnueabi else - echo "${UNAME_PROCESSOR}"-unknown-freebsd"`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`"-gnueabihf + echo "${UNAME_PROCESSOR}"-unknown-freebsd"$(echo ${UNAME_RELEASE}|sed -e 's/[-(].*//')"-gnueabihf fi exit ;; *:FreeBSD:*:*) - UNAME_PROCESSOR=`/usr/bin/uname -p` + UNAME_PROCESSOR=$(/usr/bin/uname -p) case "$UNAME_PROCESSOR" in amd64) UNAME_PROCESSOR=x86_64 ;; i386) UNAME_PROCESSOR=i586 ;; esac - echo "$UNAME_PROCESSOR"-unknown-freebsd"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`" + echo "$UNAME_PROCESSOR"-unknown-freebsd"$(echo "$UNAME_RELEASE"|sed -e 's/[-(].*//')" exit ;; i*:CYGWIN*:*) echo "$UNAME_MACHINE"-pc-cygwin @@ -905,15 +915,15 @@ echo x86_64-pc-cygwin exit ;; prep*:SunOS:5.*:*) - echo powerpcle-unknown-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" + echo powerpcle-unknown-solaris2"$(echo "$UNAME_RELEASE"|sed -e 's/[^.]*//')" exit ;; *:GNU:*:*) # the GNU system - echo "`echo "$UNAME_MACHINE"|sed -e 's,[-/].*$,,'`-unknown-$LIBC`echo "$UNAME_RELEASE"|sed -e 's,/.*$,,'`" + echo "$(echo "$UNAME_MACHINE"|sed -e 's,[-/].*$,,')-unknown-$LIBC$(echo "$UNAME_RELEASE"|sed -e 's,/.*$,,')" exit ;; *:GNU/*:*:*) # other systems with GNU libc and userland - echo "$UNAME_MACHINE-unknown-`echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`-$LIBC" + echo "$UNAME_MACHINE-unknown-$(echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]")$(echo "$UNAME_RELEASE"|sed -e 's/[-(].*//')-$LIBC" exit ;; *:Minix:*:*) echo "$UNAME_MACHINE"-unknown-minix @@ -926,7 +936,7 @@ echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; alpha:Linux:*:*) - case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' /proc/cpuinfo 2>/dev/null` in + case $(sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' /proc/cpuinfo 2>/dev/null) in EV5) UNAME_MACHINE=alphaev5 ;; EV56) UNAME_MACHINE=alphaev56 ;; PCA56) UNAME_MACHINE=alphapca56 ;; @@ -985,6 +995,9 @@ k1om:Linux:*:*) echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; + loongarch32:Linux:*:* | loongarch64:Linux:*:* | loongarchx32:Linux:*:*) + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" + exit ;; m32r*:Linux:*:*) echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; @@ -1035,7 +1048,7 @@ #endif #endif EOF - eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU\|^MIPS_ENDIAN\|^LIBCABI'`" + eval "$($CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU\|^MIPS_ENDIAN\|^LIBCABI')" test "x$CPU" != x && { echo "$CPU${MIPS_ENDIAN}-unknown-linux-$LIBCABI"; exit; } ;; mips64el:Linux:*:*) @@ -1055,7 +1068,7 @@ exit ;; parisc:Linux:*:* | hppa:Linux:*:*) # Look for CPU level - case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in + case $(grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2) in PA7*) echo hppa1.1-unknown-linux-"$LIBC" ;; PA8*) echo hppa2.0-unknown-linux-"$LIBC" ;; *) echo hppa-unknown-linux-"$LIBC" ;; @@ -1073,7 +1086,7 @@ ppcle:Linux:*:*) echo powerpcle-unknown-linux-"$LIBC" exit ;; - riscv32:Linux:*:* | riscv64:Linux:*:*) + riscv32:Linux:*:* | riscv32be:Linux:*:* | riscv64:Linux:*:* | riscv64be:Linux:*:*) echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; s390:Linux:*:* | s390x:Linux:*:*) @@ -1095,7 +1108,17 @@ echo "$UNAME_MACHINE"-dec-linux-"$LIBC" exit ;; x86_64:Linux:*:*) - echo "$UNAME_MACHINE"-pc-linux-"$LIBC" + set_cc_for_build + LIBCABI=$LIBC + if test "$CC_FOR_BUILD" != no_compiler_found; then + if (echo '#ifdef __ILP32__'; echo IS_X32; echo '#endif') | \ + (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ + grep IS_X32 >/dev/null + then + LIBCABI="$LIBC"x32 + fi + fi + echo "$UNAME_MACHINE"-pc-linux-"$LIBCABI" exit ;; xtensa*:Linux:*:*) echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" @@ -1135,7 +1158,7 @@ echo "$UNAME_MACHINE"-pc-msdosdjgpp exit ;; i*86:*:4.*:*) - UNAME_REL=`echo "$UNAME_RELEASE" | sed 's/\/MP$//'` + UNAME_REL=$(echo "$UNAME_RELEASE" | sed 's/\/MP$//') if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then echo "$UNAME_MACHINE"-univel-sysv"$UNAME_REL" else @@ -1144,7 +1167,7 @@ exit ;; i*86:*:5:[678]*) # UnixWare 7.x, OpenUNIX and OpenServer 6. - case `/bin/uname -X | grep "^Machine"` in + case $(/bin/uname -X | grep "^Machine") in *486*) UNAME_MACHINE=i486 ;; *Pentium) UNAME_MACHINE=i586 ;; *Pent*|*Celeron) UNAME_MACHINE=i686 ;; @@ -1153,10 +1176,10 @@ exit ;; i*86:*:3.2:*) if test -f /usr/options/cb.name; then - UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then - UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` + UNAME_REL=$( (/bin/uname -X|grep Release|sed -e 's/.*= //')) (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ && UNAME_MACHINE=i586 @@ -1206,7 +1229,7 @@ 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) OS_REL='' test -r /etc/.relid \ - && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` + && OS_REL=.$(sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid) /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4.3"$OS_REL"; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ @@ -1217,7 +1240,7 @@ NCR*:*:4.2:* | MPRAS*:*:4.2:*) OS_REL='.3' test -r /etc/.relid \ - && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` + && OS_REL=.$(sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid) /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4.3"$OS_REL"; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ @@ -1250,7 +1273,7 @@ exit ;; *:SINIX-*:*:*) if uname -p 2>/dev/null >/dev/null ; then - UNAME_MACHINE=`(uname -p) 2>/dev/null` + UNAME_MACHINE=$( (uname -p) 2>/dev/null) echo "$UNAME_MACHINE"-sni-sysv4 else echo ns32k-sni-sysv @@ -1284,7 +1307,7 @@ echo mips-sony-newsos6 exit ;; R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) - if [ -d /usr/nec ]; then + if test -d /usr/nec; then echo mips-nec-sysv"$UNAME_RELEASE" else echo mips-unknown-sysv"$UNAME_RELEASE" @@ -1332,8 +1355,11 @@ *:Rhapsody:*:*) echo "$UNAME_MACHINE"-apple-rhapsody"$UNAME_RELEASE" exit ;; + arm64:Darwin:*:*) + echo aarch64-apple-darwin"$UNAME_RELEASE" + exit ;; *:Darwin:*:*) - UNAME_PROCESSOR=`uname -p` + UNAME_PROCESSOR=$(uname -p) case $UNAME_PROCESSOR in unknown) UNAME_PROCESSOR=powerpc ;; esac @@ -1346,7 +1372,7 @@ else set_cc_for_build fi - if [ "$CC_FOR_BUILD" != no_compiler_found ]; then + if test "$CC_FOR_BUILD" != no_compiler_found; then if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null @@ -1370,7 +1396,7 @@ echo "$UNAME_PROCESSOR"-apple-darwin"$UNAME_RELEASE" exit ;; *:procnto*:*:* | *:QNX:[0123456789]*:*) - UNAME_PROCESSOR=`uname -p` + UNAME_PROCESSOR=$(uname -p) if test "$UNAME_PROCESSOR" = x86; then UNAME_PROCESSOR=i386 UNAME_MACHINE=pc @@ -1438,10 +1464,10 @@ echo mips-sei-seiux"$UNAME_RELEASE" exit ;; *:DragonFly:*:*) - echo "$UNAME_MACHINE"-unknown-dragonfly"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`" + echo "$UNAME_MACHINE"-unknown-dragonfly"$(echo "$UNAME_RELEASE"|sed -e 's/[-(].*//')" exit ;; *:*VMS:*:*) - UNAME_MACHINE=`(uname -p) 2>/dev/null` + UNAME_MACHINE=$( (uname -p) 2>/dev/null) case "$UNAME_MACHINE" in A*) echo alpha-dec-vms ; exit ;; I*) echo ia64-dec-vms ; exit ;; @@ -1451,13 +1477,13 @@ echo i386-pc-xenix exit ;; i*86:skyos:*:*) - echo "$UNAME_MACHINE"-pc-skyos"`echo "$UNAME_RELEASE" | sed -e 's/ .*$//'`" + echo "$UNAME_MACHINE"-pc-skyos"$(echo "$UNAME_RELEASE" | sed -e 's/ .*$//')" exit ;; i*86:rdos:*:*) echo "$UNAME_MACHINE"-pc-rdos exit ;; - i*86:AROS:*:*) - echo "$UNAME_MACHINE"-pc-aros + *:AROS:*:*) + echo "$UNAME_MACHINE"-unknown-aros exit ;; x86_64:VMkernel:*:*) echo "$UNAME_MACHINE"-unknown-esx @@ -1509,7 +1535,7 @@ #define __ARCHITECTURE__ "m68k" #endif int version; - version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; + version=$( (hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null); if (version < 4) printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); else @@ -1601,7 +1627,7 @@ } EOF -$CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null && SYSTEM_NAME=`$dummy` && +$CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null && SYSTEM_NAME=$($dummy) && { echo "$SYSTEM_NAME"; exit; } # Apollos put the system type in the environment. @@ -1626,9 +1652,15 @@ operating system you are using. If your script is old, overwrite *all* copies of config.guess and config.sub with the latest versions from: - https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess + https://git.savannah.gnu.org/cgit/config.git/plain/config.guess and - https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub + https://git.savannah.gnu.org/cgit/config.git/plain/config.sub +EOF + +year=$(echo $timestamp | sed 's,-.*,,') +# shellcheck disable=SC2003 +if test "$(expr "$(date +%Y)" - "$year")" -lt 3 ; then + cat >&2 </dev/null || echo unknown` -uname -r = `(uname -r) 2>/dev/null || echo unknown` -uname -s = `(uname -s) 2>/dev/null || echo unknown` -uname -v = `(uname -v) 2>/dev/null || echo unknown` - -/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` -/bin/uname -X = `(/bin/uname -X) 2>/dev/null` - -hostinfo = `(hostinfo) 2>/dev/null` -/bin/universe = `(/bin/universe) 2>/dev/null` -/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` -/bin/arch = `(/bin/arch) 2>/dev/null` -/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` -/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` +uname -m = $( (uname -m) 2>/dev/null || echo unknown) +uname -r = $( (uname -r) 2>/dev/null || echo unknown) +uname -s = $( (uname -s) 2>/dev/null || echo unknown) +uname -v = $( (uname -v) 2>/dev/null || echo unknown) + +/usr/bin/uname -p = $( (/usr/bin/uname -p) 2>/dev/null) +/bin/uname -X = $( (/bin/uname -X) 2>/dev/null) + +hostinfo = $( (hostinfo) 2>/dev/null) +/bin/universe = $( (/bin/universe) 2>/dev/null) +/usr/bin/arch -k = $( (/usr/bin/arch -k) 2>/dev/null) +/bin/arch = $( (/bin/arch) 2>/dev/null) +/usr/bin/oslevel = $( (/usr/bin/oslevel) 2>/dev/null) +/usr/convex/getsysinfo = $( (/usr/convex/getsysinfo) 2>/dev/null) UNAME_MACHINE = "$UNAME_MACHINE" UNAME_RELEASE = "$UNAME_RELEASE" UNAME_SYSTEM = "$UNAME_SYSTEM" UNAME_VERSION = "$UNAME_VERSION" EOF +fi exit 1 diff -Nru quantlib-1.21/config/config.sub quantlib-1.24/config/config.sub --- quantlib-1.21/config/config.sub 2020-04-24 13:39:00.000000000 +0000 +++ quantlib-1.24/config/config.sub 2021-07-14 13:19:58.000000000 +0000 @@ -1,8 +1,8 @@ #! /bin/sh # Configuration validation subroutine script. -# Copyright 1992-2020 Free Software Foundation, Inc. +# Copyright 1992-2021 Free Software Foundation, Inc. -timestamp='2020-01-01' +timestamp='2021-01-08' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by @@ -33,7 +33,7 @@ # Otherwise, we print the canonical config type on stdout and succeed. # You can get the latest version of this script from: -# https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub +# https://git.savannah.gnu.org/cgit/config.git/plain/config.sub # This file is supposed to be the same for all GNU packages # and recognize all the CPU types, system types and aliases @@ -50,7 +50,7 @@ # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM # It is wrong to echo any other type of specification. -me=`echo "$0" | sed -e 's,.*/,,'` +me=$(echo "$0" | sed -e 's,.*/,,') usage="\ Usage: $0 [OPTION] CPU-MFR-OPSYS or ALIAS @@ -67,7 +67,7 @@ version="\ GNU config.sub ($timestamp) -Copyright 1992-2020 Free Software Foundation, Inc. +Copyright 1992-2021 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." @@ -124,28 +124,27 @@ ;; *-*-*-*) basic_machine=$field1-$field2 - os=$field3-$field4 + basic_os=$field3-$field4 ;; *-*-*) # Ambiguous whether COMPANY is present, or skipped and KERNEL-OS is two # parts maybe_os=$field2-$field3 case $maybe_os in - nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc \ - | linux-newlib* | linux-musl* | linux-uclibc* | uclinux-uclibc* \ + nto-qnx* | linux-* | uclinux-uclibc* \ | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* \ | netbsd*-eabi* | kopensolaris*-gnu* | cloudabi*-eabi* \ | storm-chaos* | os2-emx* | rtmk-nova*) basic_machine=$field1 - os=$maybe_os + basic_os=$maybe_os ;; android-linux) basic_machine=$field1-unknown - os=linux-android + basic_os=linux-android ;; *) basic_machine=$field1-$field2 - os=$field3 + basic_os=$field3 ;; esac ;; @@ -154,7 +153,7 @@ case $field1-$field2 in decstation-3100) basic_machine=mips-dec - os= + basic_os= ;; *-*) # Second component is usually, but not always the OS @@ -162,7 +161,7 @@ # Prevent following clause from handling this valid os sun*os*) basic_machine=$field1 - os=$field2 + basic_os=$field2 ;; # Manufacturers dec* | mips* | sequent* | encore* | pc533* | sgi* | sony* \ @@ -175,11 +174,11 @@ | microblaze* | sim | cisco \ | oki | wec | wrs | winbond) basic_machine=$field1-$field2 - os= + basic_os= ;; *) basic_machine=$field1 - os=$field2 + basic_os=$field2 ;; esac ;; @@ -191,447 +190,451 @@ case $field1 in 386bsd) basic_machine=i386-pc - os=bsd + basic_os=bsd ;; a29khif) basic_machine=a29k-amd - os=udi + basic_os=udi ;; adobe68k) basic_machine=m68010-adobe - os=scout + basic_os=scout ;; alliant) basic_machine=fx80-alliant - os= + basic_os= ;; altos | altos3068) basic_machine=m68k-altos - os= + basic_os= ;; am29k) basic_machine=a29k-none - os=bsd + basic_os=bsd ;; amdahl) basic_machine=580-amdahl - os=sysv + basic_os=sysv ;; amiga) basic_machine=m68k-unknown - os= + basic_os= ;; amigaos | amigados) basic_machine=m68k-unknown - os=amigaos + basic_os=amigaos ;; amigaunix | amix) basic_machine=m68k-unknown - os=sysv4 + basic_os=sysv4 ;; apollo68) basic_machine=m68k-apollo - os=sysv + basic_os=sysv ;; apollo68bsd) basic_machine=m68k-apollo - os=bsd + basic_os=bsd ;; aros) basic_machine=i386-pc - os=aros + basic_os=aros ;; aux) basic_machine=m68k-apple - os=aux + basic_os=aux ;; balance) basic_machine=ns32k-sequent - os=dynix + basic_os=dynix ;; blackfin) basic_machine=bfin-unknown - os=linux + basic_os=linux ;; cegcc) basic_machine=arm-unknown - os=cegcc + basic_os=cegcc ;; convex-c1) basic_machine=c1-convex - os=bsd + basic_os=bsd ;; convex-c2) basic_machine=c2-convex - os=bsd + basic_os=bsd ;; convex-c32) basic_machine=c32-convex - os=bsd + basic_os=bsd ;; convex-c34) basic_machine=c34-convex - os=bsd + basic_os=bsd ;; convex-c38) basic_machine=c38-convex - os=bsd + basic_os=bsd ;; cray) basic_machine=j90-cray - os=unicos + basic_os=unicos ;; crds | unos) basic_machine=m68k-crds - os= + basic_os= ;; da30) basic_machine=m68k-da30 - os= + basic_os= ;; decstation | pmax | pmin | dec3100 | decstatn) basic_machine=mips-dec - os= + basic_os= ;; delta88) basic_machine=m88k-motorola - os=sysv3 + basic_os=sysv3 ;; dicos) basic_machine=i686-pc - os=dicos + basic_os=dicos ;; djgpp) basic_machine=i586-pc - os=msdosdjgpp + basic_os=msdosdjgpp ;; ebmon29k) basic_machine=a29k-amd - os=ebmon + basic_os=ebmon ;; es1800 | OSE68k | ose68k | ose | OSE) basic_machine=m68k-ericsson - os=ose + basic_os=ose ;; gmicro) basic_machine=tron-gmicro - os=sysv + basic_os=sysv ;; go32) basic_machine=i386-pc - os=go32 + basic_os=go32 ;; h8300hms) basic_machine=h8300-hitachi - os=hms + basic_os=hms ;; h8300xray) basic_machine=h8300-hitachi - os=xray + basic_os=xray ;; h8500hms) basic_machine=h8500-hitachi - os=hms + basic_os=hms ;; harris) basic_machine=m88k-harris - os=sysv3 + basic_os=sysv3 ;; hp300 | hp300hpux) basic_machine=m68k-hp - os=hpux + basic_os=hpux ;; hp300bsd) basic_machine=m68k-hp - os=bsd + basic_os=bsd ;; hppaosf) basic_machine=hppa1.1-hp - os=osf + basic_os=osf ;; hppro) basic_machine=hppa1.1-hp - os=proelf + basic_os=proelf ;; i386mach) basic_machine=i386-mach - os=mach + basic_os=mach ;; isi68 | isi) basic_machine=m68k-isi - os=sysv + basic_os=sysv ;; m68knommu) basic_machine=m68k-unknown - os=linux + basic_os=linux ;; magnum | m3230) basic_machine=mips-mips - os=sysv + basic_os=sysv ;; merlin) basic_machine=ns32k-utek - os=sysv + basic_os=sysv ;; mingw64) basic_machine=x86_64-pc - os=mingw64 + basic_os=mingw64 ;; mingw32) basic_machine=i686-pc - os=mingw32 + basic_os=mingw32 ;; mingw32ce) basic_machine=arm-unknown - os=mingw32ce + basic_os=mingw32ce ;; monitor) basic_machine=m68k-rom68k - os=coff + basic_os=coff ;; morphos) basic_machine=powerpc-unknown - os=morphos + basic_os=morphos ;; moxiebox) basic_machine=moxie-unknown - os=moxiebox + basic_os=moxiebox ;; msdos) basic_machine=i386-pc - os=msdos + basic_os=msdos ;; msys) basic_machine=i686-pc - os=msys + basic_os=msys ;; mvs) basic_machine=i370-ibm - os=mvs + basic_os=mvs ;; nacl) basic_machine=le32-unknown - os=nacl + basic_os=nacl ;; ncr3000) basic_machine=i486-ncr - os=sysv4 + basic_os=sysv4 ;; netbsd386) basic_machine=i386-pc - os=netbsd + basic_os=netbsd ;; netwinder) basic_machine=armv4l-rebel - os=linux + basic_os=linux ;; news | news700 | news800 | news900) basic_machine=m68k-sony - os=newsos + basic_os=newsos ;; news1000) basic_machine=m68030-sony - os=newsos + basic_os=newsos ;; necv70) basic_machine=v70-nec - os=sysv + basic_os=sysv ;; nh3000) basic_machine=m68k-harris - os=cxux + basic_os=cxux ;; nh[45]000) basic_machine=m88k-harris - os=cxux + basic_os=cxux ;; nindy960) basic_machine=i960-intel - os=nindy + basic_os=nindy ;; mon960) basic_machine=i960-intel - os=mon960 + basic_os=mon960 ;; nonstopux) basic_machine=mips-compaq - os=nonstopux + basic_os=nonstopux ;; os400) basic_machine=powerpc-ibm - os=os400 + basic_os=os400 ;; OSE68000 | ose68000) basic_machine=m68000-ericsson - os=ose + basic_os=ose ;; os68k) basic_machine=m68k-none - os=os68k + basic_os=os68k ;; paragon) basic_machine=i860-intel - os=osf + basic_os=osf ;; parisc) basic_machine=hppa-unknown - os=linux + basic_os=linux + ;; + psp) + basic_machine=mipsallegrexel-sony + basic_os=psp ;; pw32) basic_machine=i586-unknown - os=pw32 + basic_os=pw32 ;; rdos | rdos64) basic_machine=x86_64-pc - os=rdos + basic_os=rdos ;; rdos32) basic_machine=i386-pc - os=rdos + basic_os=rdos ;; rom68k) basic_machine=m68k-rom68k - os=coff + basic_os=coff ;; sa29200) basic_machine=a29k-amd - os=udi + basic_os=udi ;; sei) basic_machine=mips-sei - os=seiux + basic_os=seiux ;; sequent) basic_machine=i386-sequent - os= + basic_os= ;; sps7) basic_machine=m68k-bull - os=sysv2 + basic_os=sysv2 ;; st2000) basic_machine=m68k-tandem - os= + basic_os= ;; stratus) basic_machine=i860-stratus - os=sysv4 + basic_os=sysv4 ;; sun2) basic_machine=m68000-sun - os= + basic_os= ;; sun2os3) basic_machine=m68000-sun - os=sunos3 + basic_os=sunos3 ;; sun2os4) basic_machine=m68000-sun - os=sunos4 + basic_os=sunos4 ;; sun3) basic_machine=m68k-sun - os= + basic_os= ;; sun3os3) basic_machine=m68k-sun - os=sunos3 + basic_os=sunos3 ;; sun3os4) basic_machine=m68k-sun - os=sunos4 + basic_os=sunos4 ;; sun4) basic_machine=sparc-sun - os= + basic_os= ;; sun4os3) basic_machine=sparc-sun - os=sunos3 + basic_os=sunos3 ;; sun4os4) basic_machine=sparc-sun - os=sunos4 + basic_os=sunos4 ;; sun4sol2) basic_machine=sparc-sun - os=solaris2 + basic_os=solaris2 ;; sun386 | sun386i | roadrunner) basic_machine=i386-sun - os= + basic_os= ;; sv1) basic_machine=sv1-cray - os=unicos + basic_os=unicos ;; symmetry) basic_machine=i386-sequent - os=dynix + basic_os=dynix ;; t3e) basic_machine=alphaev5-cray - os=unicos + basic_os=unicos ;; t90) basic_machine=t90-cray - os=unicos + basic_os=unicos ;; toad1) basic_machine=pdp10-xkl - os=tops20 + basic_os=tops20 ;; tpf) basic_machine=s390x-ibm - os=tpf + basic_os=tpf ;; udi29k) basic_machine=a29k-amd - os=udi + basic_os=udi ;; ultra3) basic_machine=a29k-nyu - os=sym1 + basic_os=sym1 ;; v810 | necv810) basic_machine=v810-nec - os=none + basic_os=none ;; vaxv) basic_machine=vax-dec - os=sysv + basic_os=sysv ;; vms) basic_machine=vax-dec - os=vms + basic_os=vms ;; vsta) basic_machine=i386-pc - os=vsta + basic_os=vsta ;; vxworks960) basic_machine=i960-wrs - os=vxworks + basic_os=vxworks ;; vxworks68) basic_machine=m68k-wrs - os=vxworks + basic_os=vxworks ;; vxworks29k) basic_machine=a29k-wrs - os=vxworks + basic_os=vxworks ;; xbox) basic_machine=i686-pc - os=mingw32 + basic_os=mingw32 ;; ymp) basic_machine=ymp-cray - os=unicos + basic_os=unicos ;; *) basic_machine=$1 - os= + basic_os= ;; esac ;; @@ -683,17 +686,17 @@ bluegene*) cpu=powerpc vendor=ibm - os=cnk + basic_os=cnk ;; decsystem10* | dec10*) cpu=pdp10 vendor=dec - os=tops10 + basic_os=tops10 ;; decsystem20* | dec20*) cpu=pdp10 vendor=dec - os=tops20 + basic_os=tops20 ;; delta | 3300 | motorola-3300 | motorola-delta \ | 3300-motorola | delta-motorola) @@ -703,7 +706,7 @@ dpx2*) cpu=m68k vendor=bull - os=sysv3 + basic_os=sysv3 ;; encore | umax | mmax) cpu=ns32k @@ -712,7 +715,7 @@ elxsi) cpu=elxsi vendor=elxsi - os=${os:-bsd} + basic_os=${basic_os:-bsd} ;; fx2800) cpu=i860 @@ -725,7 +728,7 @@ h3050r* | hiux*) cpu=hppa1.1 vendor=hitachi - os=hiuxwe2 + basic_os=hiuxwe2 ;; hp3k9[0-9][0-9] | hp9[0-9][0-9]) cpu=hppa1.0 @@ -766,38 +769,38 @@ vendor=hp ;; i*86v32) - cpu=`echo "$1" | sed -e 's/86.*/86/'` + cpu=$(echo "$1" | sed -e 's/86.*/86/') vendor=pc - os=sysv32 + basic_os=sysv32 ;; i*86v4*) - cpu=`echo "$1" | sed -e 's/86.*/86/'` + cpu=$(echo "$1" | sed -e 's/86.*/86/') vendor=pc - os=sysv4 + basic_os=sysv4 ;; i*86v) - cpu=`echo "$1" | sed -e 's/86.*/86/'` + cpu=$(echo "$1" | sed -e 's/86.*/86/') vendor=pc - os=sysv + basic_os=sysv ;; i*86sol2) - cpu=`echo "$1" | sed -e 's/86.*/86/'` + cpu=$(echo "$1" | sed -e 's/86.*/86/') vendor=pc - os=solaris2 + basic_os=solaris2 ;; j90 | j90-cray) cpu=j90 vendor=cray - os=${os:-unicos} + basic_os=${basic_os:-unicos} ;; iris | iris4d) cpu=mips vendor=sgi - case $os in + case $basic_os in irix*) ;; *) - os=irix4 + basic_os=irix4 ;; esac ;; @@ -808,26 +811,26 @@ *mint | mint[0-9]* | *MiNT | *MiNT[0-9]*) cpu=m68k vendor=atari - os=mint + basic_os=mint ;; news-3600 | risc-news) cpu=mips vendor=sony - os=newsos + basic_os=newsos ;; next | m*-next) cpu=m68k vendor=next - case $os in + case $basic_os in openstep*) ;; nextstep*) ;; ns2*) - os=nextstep2 + basic_os=nextstep2 ;; *) - os=nextstep3 + basic_os=nextstep3 ;; esac ;; @@ -838,12 +841,12 @@ op50n-* | op60c-*) cpu=hppa1.1 vendor=oki - os=proelf + basic_os=proelf ;; pa-hitachi) cpu=hppa1.1 vendor=hitachi - os=hiuxwe2 + basic_os=hiuxwe2 ;; pbd) cpu=sparc @@ -880,12 +883,12 @@ sde) cpu=mipsisa32 vendor=sde - os=${os:-elf} + basic_os=${basic_os:-elf} ;; simso-wrs) cpu=sparclite vendor=wrs - os=vxworks + basic_os=vxworks ;; tower | tower-32) cpu=m68k @@ -902,7 +905,7 @@ w89k-*) cpu=hppa1.1 vendor=winbond - os=proelf + basic_os=proelf ;; none) cpu=none @@ -914,7 +917,7 @@ ;; leon-*|leon[3-9]-*) cpu=sparc - vendor=`echo "$basic_machine" | sed 's/-.*//'` + vendor=$(echo "$basic_machine" | sed 's/-.*//') ;; *-*) @@ -955,11 +958,11 @@ # some cases the only manufacturer, in others, it is the most popular. craynv-unknown) vendor=cray - os=${os:-unicosmp} + basic_os=${basic_os:-unicosmp} ;; c90-unknown | c90-cray) vendor=cray - os=${os:-unicos} + basic_os=${Basic_os:-unicos} ;; fx80-unknown) vendor=alliant @@ -1003,7 +1006,7 @@ dpx20-unknown | dpx20-bull) cpu=rs6000 vendor=bull - os=${os:-bosx} + basic_os=${basic_os:-bosx} ;; # Here we normalize CPU types irrespective of the vendor @@ -1012,7 +1015,7 @@ ;; blackfin-*) cpu=bfin - os=linux + basic_os=linux ;; c54x-*) cpu=tic54x @@ -1025,7 +1028,7 @@ ;; e500v[12]-*) cpu=powerpc - os=$os"spe" + basic_os=${basic_os}"spe" ;; mips3*-*) cpu=mips64 @@ -1035,7 +1038,7 @@ ;; m68knommu-*) cpu=m68k - os=linux + basic_os=linux ;; m9s12z-* | m68hcs12z-* | hcs12z-* | s12z-*) cpu=s12z @@ -1045,7 +1048,7 @@ ;; parisc-*) cpu=hppa - os=linux + basic_os=linux ;; pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) cpu=i586 @@ -1081,7 +1084,7 @@ cpu=mipsisa64sb1el ;; sh5e[lb]-*) - cpu=`echo "$cpu" | sed 's/^\(sh.\)e\(.\)$/\1\2e/'` + cpu=$(echo "$cpu" | sed 's/^\(sh.\)e\(.\)$/\1\2e/') ;; spur-*) cpu=spur @@ -1099,13 +1102,16 @@ cpu=x86_64 ;; xscale-* | xscalee[bl]-*) - cpu=`echo "$cpu" | sed 's/^xscale/arm/'` + cpu=$(echo "$cpu" | sed 's/^xscale/arm/') + ;; + arm64-*) + cpu=aarch64 ;; # Recognize the canonical CPU Types that limit and/or modify the # company names they are paired with. cr16-*) - os=${os:-elf} + basic_os=${basic_os:-elf} ;; crisv32-* | etraxfs*-*) cpu=crisv32 @@ -1116,7 +1122,7 @@ vendor=axis ;; crx-*) - os=${os:-elf} + basic_os=${basic_os:-elf} ;; neo-tandem) cpu=neo @@ -1138,16 +1144,12 @@ cpu=nsx vendor=tandem ;; - s390-*) - cpu=s390 - vendor=ibm - ;; - s390x-*) - cpu=s390x - vendor=ibm + mipsallegrexel-sony) + cpu=mipsallegrexel + vendor=sony ;; tile*-*) - os=${os:-linux-gnu} + basic_os=${basic_os:-linux-gnu} ;; *) @@ -1164,7 +1166,7 @@ | am33_2.0 \ | amdgcn \ | arc | arceb \ - | arm | arm[lb]e | arme[lb] | armv* \ + | arm | arm[lb]e | arme[lb] | armv* \ | avr | avr32 \ | asmjs \ | ba \ @@ -1183,6 +1185,7 @@ | k1om \ | le32 | le64 \ | lm32 \ + | loongarch32 | loongarch64 | loongarchx32 \ | m32c | m32r | m32rle \ | m5200 | m68000 | m680[012346]0 | m68360 | m683?2 | m68k \ | m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x \ @@ -1227,8 +1230,9 @@ | powerpc | powerpc64 | powerpc64le | powerpcle | powerpcspe \ | pru \ | pyramid \ - | riscv | riscv32 | riscv64 \ + | riscv | riscv32 | riscv32be | riscv64 | riscv64be \ | rl78 | romp | rs6000 | rx \ + | s390 | s390x \ | score \ | sh | shl \ | sh[1234] | sh[24]a | sh[24]ae[lb] | sh[23]e | she[lb] | sh[lb]e \ @@ -1238,6 +1242,7 @@ | sparcv8 | sparcv9 | sparcv9b | sparcv9v | sv1 | sx* \ | spu \ | tahoe \ + | thumbv7* \ | tic30 | tic4x | tic54x | tic55x | tic6x | tic80 \ | tron \ | ubicom32 \ @@ -1275,8 +1280,47 @@ # Decode manufacturer-specific aliases for certain operating systems. -if [ x$os != x ] +if test x$basic_os != x then + +# First recognize some ad-hoc caes, or perhaps split kernel-os, or else just +# set os. +case $basic_os in + gnu/linux*) + kernel=linux + os=$(echo $basic_os | sed -e 's|gnu/linux|gnu|') + ;; + os2-emx) + kernel=os2 + os=$(echo $basic_os | sed -e 's|os2-emx|emx|') + ;; + nto-qnx*) + kernel=nto + os=$(echo $basic_os | sed -e 's|nto-qnx|qnx|') + ;; + *-*) + # shellcheck disable=SC2162 + IFS="-" read kernel os <&2 - exit 1 + # No normalization, but not necessarily accepted, that comes below. ;; esac + else # Here we handle the default operating systems that come with various machines. @@ -1528,6 +1499,7 @@ # will signal an error saying that MANUFACTURER isn't an operating # system, and we'll never get to this point. +kernel= case $cpu-$vendor in score-*) os=elf @@ -1539,7 +1511,8 @@ os=riscix1.2 ;; arm*-rebel) - os=linux + kernel=linux + os=gnu ;; arm*-semi) os=aout @@ -1705,84 +1678,178 @@ os=none ;; esac + fi +# Now, validate our (potentially fixed-up) OS. +case $os in + # Sometimes we do "kernel-libc", so those need to count as OSes. + musl* | newlib* | uclibc*) + ;; + # Likewise for "kernel-abi" + eabi* | gnueabi*) + ;; + # VxWorks passes extra cpu info in the 4th filed. + simlinux | simwindows | spe) + ;; + # Now accept the basic system types. + # The portable systems comes first. + # Each alternative MUST end in a * to match a version number. + gnu* | android* | bsd* | mach* | minix* | genix* | ultrix* | irix* \ + | *vms* | esix* | aix* | cnk* | sunos | sunos[34]* \ + | hpux* | unos* | osf* | luna* | dgux* | auroraux* | solaris* \ + | sym* | plan9* | psp* | sim* | xray* | os68k* | v88r* \ + | hiux* | abug | nacl* | netware* | windows* \ + | os9* | macos* | osx* | ios* \ + | mpw* | magic* | mmixware* | mon960* | lnews* \ + | amigaos* | amigados* | msdos* | newsos* | unicos* | aof* \ + | aos* | aros* | cloudabi* | sortix* | twizzler* \ + | nindy* | vxsim* | vxworks* | ebmon* | hms* | mvs* \ + | clix* | riscos* | uniplus* | iris* | isc* | rtu* | xenix* \ + | mirbsd* | netbsd* | dicos* | openedition* | ose* \ + | bitrig* | openbsd* | solidbsd* | libertybsd* | os108* \ + | ekkobsd* | freebsd* | riscix* | lynxos* | os400* \ + | bosx* | nextstep* | cxux* | aout* | elf* | oabi* \ + | ptx* | coff* | ecoff* | winnt* | domain* | vsta* \ + | udi* | lites* | ieee* | go32* | aux* | hcos* \ + | chorusrdb* | cegcc* | glidix* \ + | cygwin* | msys* | pe* | moss* | proelf* | rtems* \ + | midipix* | mingw32* | mingw64* | mint* \ + | uxpv* | beos* | mpeix* | udk* | moxiebox* \ + | interix* | uwin* | mks* | rhapsody* | darwin* \ + | openstep* | oskit* | conix* | pw32* | nonstopux* \ + | storm-chaos* | tops10* | tenex* | tops20* | its* \ + | os2* | vos* | palmos* | uclinux* | nucleus* | morphos* \ + | scout* | superux* | sysv* | rtmk* | tpf* | windiss* \ + | powermax* | dnix* | nx6 | nx7 | sei* | dragonfly* \ + | skyos* | haiku* | rdos* | toppers* | drops* | es* \ + | onefs* | tirtos* | phoenix* | fuchsia* | redox* | bme* \ + | midnightbsd* | amdhsa* | unleashed* | emscripten* | wasi* \ + | nsk* | powerunix* | genode* | zvmoe* | qnx* | emx*) + ;; + # This one is extra strict with allowed versions + sco3.2v2 | sco3.2v[4-9]* | sco5v6*) + # Don't forget version if it is 3.2v4 or newer. + ;; + none) + ;; + *) + echo Invalid configuration \`"$1"\': OS \`"$os"\' not recognized 1>&2 + exit 1 + ;; +esac + +# As a final step for OS-related things, validate the OS-kernel combination +# (given a valid OS), if there is a kernel. +case $kernel-$os in + linux-gnu* | linux-dietlibc* | linux-android* | linux-newlib* | linux-musl* | linux-uclibc* ) + ;; + uclinux-uclibc* ) + ;; + -dietlibc* | -newlib* | -musl* | -uclibc* ) + # These are just libc implementations, not actual OSes, and thus + # require a kernel. + echo "Invalid configuration \`$1': libc \`$os' needs explicit kernel." 1>&2 + exit 1 + ;; + kfreebsd*-gnu* | kopensolaris*-gnu*) + ;; + vxworks-simlinux | vxworks-simwindows | vxworks-spe) + ;; + nto-qnx*) + ;; + os2-emx) + ;; + *-eabi* | *-gnueabi*) + ;; + -*) + # Blank kernel with real OS is always fine. + ;; + *-*) + echo "Invalid configuration \`$1': Kernel \`$kernel' not known to work with OS \`$os'." 1>&2 + exit 1 + ;; +esac + # Here we handle the case where we know the os, and the CPU type, but not the # manufacturer. We pick the logical manufacturer. case $vendor in unknown) - case $os in - riscix*) + case $cpu-$os in + *-riscix*) vendor=acorn ;; - sunos*) + *-sunos*) vendor=sun ;; - cnk*|-aix*) + *-cnk* | *-aix*) vendor=ibm ;; - beos*) + *-beos*) vendor=be ;; - hpux*) + *-hpux*) vendor=hp ;; - mpeix*) + *-mpeix*) vendor=hp ;; - hiux*) + *-hiux*) vendor=hitachi ;; - unos*) + *-unos*) vendor=crds ;; - dgux*) + *-dgux*) vendor=dg ;; - luna*) + *-luna*) vendor=omron ;; - genix*) + *-genix*) vendor=ns ;; - clix*) + *-clix*) vendor=intergraph ;; - mvs* | opened*) + *-mvs* | *-opened*) + vendor=ibm + ;; + *-os400*) vendor=ibm ;; - os400*) + s390-* | s390x-*) vendor=ibm ;; - ptx*) + *-ptx*) vendor=sequent ;; - tpf*) + *-tpf*) vendor=ibm ;; - vxsim* | vxworks* | windiss*) + *-vxsim* | *-vxworks* | *-windiss*) vendor=wrs ;; - aux*) + *-aux*) vendor=apple ;; - hms*) + *-hms*) vendor=hitachi ;; - mpw* | macos*) + *-mpw* | *-macos*) vendor=apple ;; - *mint | mint[0-9]* | *MiNT | MiNT[0-9]*) + *-*mint | *-mint[0-9]* | *-*MiNT | *-MiNT[0-9]*) vendor=atari ;; - vos*) + *-vos*) vendor=stratus ;; esac ;; esac -echo "$cpu-$vendor-$os" +echo "$cpu-$vendor-${kernel:+$kernel-}$os" exit # Local variables: diff -Nru quantlib-1.21/config/install-sh quantlib-1.24/config/install-sh --- quantlib-1.21/config/install-sh 2020-04-24 13:39:00.000000000 +0000 +++ quantlib-1.24/config/install-sh 2021-07-14 13:19:52.000000000 +0000 @@ -1,7 +1,7 @@ #!/bin/sh # install - install a program, script, or datafile -scriptversion=2018-03-11.20; # UTC +scriptversion=2020-11-14.01; # UTC # This originates from X11R5 (mit/util/scripts/install.sh), which was # later released in X11R6 (xc/config/util/install.sh) with the @@ -69,6 +69,11 @@ # Desired mode of installed file. mode=0755 +# Create dirs (including intermediate dirs) using mode 755. +# This is like GNU 'install' as of coreutils 8.32 (2020). +mkdir_umask=22 + +backupsuffix= chgrpcmd= chmodcmd=$chmodprog chowncmd= @@ -99,18 +104,28 @@ --version display version info and exit. -c (ignored) - -C install only if different (preserve the last data modification time) + -C install only if different (preserve data modification time) -d create directories instead of installing files. -g GROUP $chgrpprog installed files to GROUP. -m MODE $chmodprog installed files to MODE. -o USER $chownprog installed files to USER. + -p pass -p to $cpprog. -s $stripprog installed files. + -S SUFFIX attempt to back up existing files, with suffix SUFFIX. -t DIRECTORY install into DIRECTORY. -T report an error if DSTFILE is a directory. Environment variables override the default commands: CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG + +By default, rm is invoked with -f; when overridden with RMPROG, +it's up to you to specify -f if you want it. + +If -S is not specified, no backups are attempted. + +Email bug reports to bug-automake@gnu.org. +Automake home page: https://www.gnu.org/software/automake/ " while test $# -ne 0; do @@ -137,8 +152,13 @@ -o) chowncmd="$chownprog $2" shift;; + -p) cpprog="$cpprog -p";; + -s) stripcmd=$stripprog;; + -S) backupsuffix="$2" + shift;; + -t) is_target_a_directory=always dst_arg=$2 @@ -255,6 +275,10 @@ dstdir=$dst test -d "$dstdir" dstdir_status=$? + # Don't chown directories that already exist. + if test $dstdir_status = 0; then + chowncmd="" + fi else # Waiting for this to be detected by the "$cpprog $src $dsttmp" command @@ -301,22 +325,6 @@ if test $dstdir_status != 0; then case $posix_mkdir in '') - # Create intermediate dirs using mode 755 as modified by the umask. - # This is like FreeBSD 'install' as of 1997-10-28. - umask=`umask` - case $stripcmd.$umask in - # Optimize common cases. - *[2367][2367]) mkdir_umask=$umask;; - .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;; - - *[0-7]) - mkdir_umask=`expr $umask + 22 \ - - $umask % 100 % 40 + $umask % 20 \ - - $umask % 10 % 4 + $umask % 2 - `;; - *) mkdir_umask=$umask,go-w;; - esac - # With -d, create the new directory with the user-specified mode. # Otherwise, rely on $mkdir_umask. if test -n "$dir_arg"; then @@ -326,52 +334,49 @@ fi posix_mkdir=false - case $umask in - *[123567][0-7][0-7]) - # POSIX mkdir -p sets u+wx bits regardless of umask, which - # is incompatible with FreeBSD 'install' when (umask & 300) != 0. - ;; - *) - # Note that $RANDOM variable is not portable (e.g. dash); Use it - # here however when possible just to lower collision chance. - tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ - - trap 'ret=$?; rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" 2>/dev/null; exit $ret' 0 - - # Because "mkdir -p" follows existing symlinks and we likely work - # directly in world-writeable /tmp, make sure that the '$tmpdir' - # directory is successfully created first before we actually test - # 'mkdir -p' feature. - if (umask $mkdir_umask && - $mkdirprog $mkdir_mode "$tmpdir" && - exec $mkdirprog $mkdir_mode -p -- "$tmpdir/a/b") >/dev/null 2>&1 - then - if test -z "$dir_arg" || { - # Check for POSIX incompatibilities with -m. - # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or - # other-writable bit of parent directory when it shouldn't. - # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. - test_tmpdir="$tmpdir/a" - ls_ld_tmpdir=`ls -ld "$test_tmpdir"` - case $ls_ld_tmpdir in - d????-?r-*) different_mode=700;; - d????-?--*) different_mode=755;; - *) false;; - esac && - $mkdirprog -m$different_mode -p -- "$test_tmpdir" && { - ls_ld_tmpdir_1=`ls -ld "$test_tmpdir"` - test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" - } - } - then posix_mkdir=: - fi - rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" - else - # Remove any dirs left behind by ancient mkdir implementations. - rmdir ./$mkdir_mode ./-p ./-- "$tmpdir" 2>/dev/null - fi - trap '' 0;; - esac;; + # The $RANDOM variable is not portable (e.g., dash). Use it + # here however when possible just to lower collision chance. + tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ + + trap ' + ret=$? + rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" 2>/dev/null + exit $ret + ' 0 + + # Because "mkdir -p" follows existing symlinks and we likely work + # directly in world-writeable /tmp, make sure that the '$tmpdir' + # directory is successfully created first before we actually test + # 'mkdir -p'. + if (umask $mkdir_umask && + $mkdirprog $mkdir_mode "$tmpdir" && + exec $mkdirprog $mkdir_mode -p -- "$tmpdir/a/b") >/dev/null 2>&1 + then + if test -z "$dir_arg" || { + # Check for POSIX incompatibilities with -m. + # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or + # other-writable bit of parent directory when it shouldn't. + # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. + test_tmpdir="$tmpdir/a" + ls_ld_tmpdir=`ls -ld "$test_tmpdir"` + case $ls_ld_tmpdir in + d????-?r-*) different_mode=700;; + d????-?--*) different_mode=755;; + *) false;; + esac && + $mkdirprog -m$different_mode -p -- "$test_tmpdir" && { + ls_ld_tmpdir_1=`ls -ld "$test_tmpdir"` + test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" + } + } + then posix_mkdir=: + fi + rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" + else + # Remove any dirs left behind by ancient mkdir implementations. + rmdir ./$mkdir_mode ./-p ./-- "$tmpdir" 2>/dev/null + fi + trap '' 0;; esac if @@ -382,7 +387,7 @@ then : else - # The umask is ridiculous, or mkdir does not conform to POSIX, + # mkdir does not conform to POSIX, # or it failed possibly due to a race condition. Create the # directory the slow way, step by step, checking for races as we go. @@ -411,7 +416,7 @@ prefixes= else if $posix_mkdir; then - (umask=$mkdir_umask && + (umask $mkdir_umask && $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break # Don't fail if two instances are running concurrently. test -d "$prefix" || exit 1 @@ -488,6 +493,13 @@ then rm -f "$dsttmp" else + # If $backupsuffix is set, and the file being installed + # already exists, attempt a backup. Don't worry if it fails, + # e.g., if mv doesn't support -f. + if test -n "$backupsuffix" && test -f "$dst"; then + $doit $mvcmd -f "$dst" "$dst$backupsuffix" 2>/dev/null + fi + # Rename the file to the real destination. $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null || @@ -502,9 +514,9 @@ # file should still install successfully. { test ! -f "$dst" || - $doit $rmcmd -f "$dst" 2>/dev/null || + $doit $rmcmd "$dst" 2>/dev/null || { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null && - { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; } + { $doit $rmcmd "$rmtmp" 2>/dev/null; :; } } || { echo "$0: cannot unlink or rename $dst" >&2 (exit 1); exit 1 diff -Nru quantlib-1.21/config/test-driver quantlib-1.24/config/test-driver --- quantlib-1.21/config/test-driver 2020-04-24 13:39:14.000000000 +0000 +++ quantlib-1.24/config/test-driver 2021-07-14 13:19:58.000000000 +0000 @@ -42,11 +42,13 @@ { cat <. # # -# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. +# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, +# Inc. # # # This configure script is free software; the Free Software Foundation @@ -34,14 +35,16 @@ # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : +as_nop=: +if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 +then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST -else +else $as_nop case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( @@ -51,46 +54,46 @@ fi + +# Reset variables that may have inherited troublesome values from +# the environment. + +# IFS needs to be set, to space, tab, and newline, in precisely that order. +# (If _AS_PATH_WALK were called with IFS unset, it would have the +# side effect of setting IFS to empty, thus disabling word splitting.) +# Quoting is to prevent editors from complaining about space-tab. as_nl=' ' export as_nl -# Printing a long string crashes Solaris 7 /usr/bin/printf. -as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' -as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo -as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo -# Prefer a ksh shell builtin over an external printf program on Solaris, -# but without wasting forks for bash or zsh. -if test -z "$BASH_VERSION$ZSH_VERSION" \ - && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then - as_echo='print -r --' - as_echo_n='print -rn --' -elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then - as_echo='printf %s\n' - as_echo_n='printf %s' -else - if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then - as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' - as_echo_n='/usr/ucb/echo -n' - else - as_echo_body='eval expr "X$1" : "X\\(.*\\)"' - as_echo_n_body='eval - arg=$1; - case $arg in #( - *"$as_nl"*) - expr "X$arg" : "X\\(.*\\)$as_nl"; - arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; - esac; - expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" - ' - export as_echo_n_body - as_echo_n='sh -c $as_echo_n_body as_echo' - fi - export as_echo_body - as_echo='sh -c $as_echo_body as_echo' -fi +IFS=" "" $as_nl" + +PS1='$ ' +PS2='> ' +PS4='+ ' + +# Ensure predictable behavior from utilities with locale-dependent output. +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# We cannot yet rely on "unset" to work, but we need these variables +# to be unset--not just set to an empty or harmless value--now, to +# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct +# also avoids known problems related to "unset" and subshell syntax +# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). +for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH +do eval test \${$as_var+y} \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +done + +# Ensure that fds 0, 1, and 2 are open. +if (exec 3>&0) 2>/dev/null; then :; else exec 0&1) 2>/dev/null; then :; else exec 1>/dev/null; fi +if (exec 3>&2) ; then :; else exec 2>/dev/null; fi # The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then +if ${PATH_SEPARATOR+false} :; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || @@ -99,13 +102,6 @@ fi -# IFS -# We need space, tab and new line, in precisely that order. Quoting is -# there to prevent editors from complaining about space-tab. -# (If _AS_PATH_WALK were called with IFS unset, it would disable word -# splitting by setting IFS to empty value.) -IFS=" "" $as_nl" - # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( @@ -114,8 +110,12 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + test -r "$as_dir$0" && as_myself=$as_dir$0 && break done IFS=$as_save_IFS @@ -127,30 +127,10 @@ as_myself=$0 fi if test ! -f "$as_myself"; then - $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi -# Unset variables that we do not need and which cause bugs (e.g. in -# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" -# suppresses any "Segmentation fault" message there. '((' could -# trigger a bug in pdksh 5.2.14. -for as_var in BASH_ENV ENV MAIL MAILPATH -do eval test x\${$as_var+set} = xset \ - && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : -done -PS1='$ ' -PS2='> ' -PS4='+ ' - -# NLS nuisances. -LC_ALL=C -export LC_ALL -LANGUAGE=C -export LANGUAGE - -# CDPATH. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH # Use a proper internal environment variable to ensure we don't fall # into an infinite loop, continuously re-executing ourselves. @@ -172,20 +152,22 @@ exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. -$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 -as_fn_exit 255 +printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 +exit 255 fi # We don't want this to propagate to other subprocesses. { _as_can_reexec=; unset _as_can_reexec;} if test "x$CONFIG_SHELL" = x; then - as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : + as_bourne_compatible="as_nop=: +if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 +then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which # is contrary to our usage. Disable this feature. alias -g '\${1+\"\$@\"}'='\"\$@\"' setopt NO_GLOB_SUBST -else +else \$as_nop case \`(set -o) 2>/dev/null\` in #( *posix*) : set -o posix ;; #( @@ -205,12 +187,15 @@ as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } -if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : +if ( set x; as_fn_ret_success y && test x = \"\$1\" ) +then : -else +else \$as_nop exitcode=1; echo positional parameters were not saved. fi test x\$exitcode = x0 || exit 1 +blah=\$(echo \$(echo blah)) +test x\"\$blah\" = xblah || exit 1 test -x / || exit 1" as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO @@ -225,30 +210,38 @@ test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 test \$(( 1 + 1 )) = 2 || exit 1" - if (eval "$as_required") 2>/dev/null; then : + if (eval "$as_required") 2>/dev/null +then : as_have_required=yes -else +else $as_nop as_have_required=no fi - if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null +then : -else +else $as_nop as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_found=false for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac as_found=: case $as_dir in #( /*) for as_base in sh bash ksh sh5; do # Try only shells that exist, to save several forks. - as_shell=$as_dir/$as_base + as_shell=$as_dir$as_base if { test -f "$as_shell" || test -f "$as_shell.exe"; } && - { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : + as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null +then : CONFIG_SHELL=$as_shell as_have_required=yes - if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : + if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null +then : break 2 fi fi @@ -256,14 +249,21 @@ esac as_found=false done -$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && - { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : - CONFIG_SHELL=$SHELL as_have_required=yes -fi; } IFS=$as_save_IFS +if $as_found +then : + +else $as_nop + if { test -f "$SHELL" || test -f "$SHELL.exe"; } && + as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null +then : + CONFIG_SHELL=$SHELL as_have_required=yes +fi +fi - if test "x$CONFIG_SHELL" != x; then : + if test "x$CONFIG_SHELL" != x +then : export CONFIG_SHELL # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also @@ -281,18 +281,19 @@ exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. -$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 +printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 exit 255 fi - if test x$as_have_required = xno; then : - $as_echo "$0: This script requires a shell more modern than all" - $as_echo "$0: the shells that I found on your system." - if test x${ZSH_VERSION+set} = xset ; then - $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" - $as_echo "$0: be upgraded to zsh 4.3.4 or later." + if test x$as_have_required = xno +then : + printf "%s\n" "$0: This script requires a shell more modern than all" + printf "%s\n" "$0: the shells that I found on your system." + if test ${ZSH_VERSION+y} ; then + printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" + printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." else - $as_echo "$0: Please tell bug-autoconf@gnu.org and + printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and $0: quantlib-dev@lists.sourceforge.net about your system, $0: including any error possibly output before this $0: message. Then install a modern shell, or manually run @@ -320,6 +321,7 @@ } as_unset=as_fn_unset + # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. @@ -337,6 +339,14 @@ as_fn_set_status $1 exit $1 } # as_fn_exit +# as_fn_nop +# --------- +# Do nothing but, unlike ":", preserve the value of $?. +as_fn_nop () +{ + return $? +} +as_nop=as_fn_nop # as_fn_mkdir_p # ------------- @@ -351,7 +361,7 @@ as_dirs= while :; do case $as_dir in #( - *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" @@ -360,7 +370,7 @@ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$as_dir" | +printf "%s\n" X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q @@ -399,12 +409,13 @@ # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. -if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null +then : eval 'as_fn_append () { eval $1+=\$2 }' -else +else $as_nop as_fn_append () { eval $1=\$$1\$2 @@ -416,18 +427,27 @@ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. -if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null +then : eval 'as_fn_arith () { as_val=$(( $* )) }' -else +else $as_nop as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith +# as_fn_nop +# --------- +# Do nothing but, unlike ":", preserve the value of $?. +as_fn_nop () +{ + return $? +} +as_nop=as_fn_nop # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- @@ -439,9 +459,9 @@ as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi - $as_echo "$as_me: error: $2" >&2 + printf "%s\n" "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error @@ -468,7 +488,7 @@ $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X/"$0" | +printf "%s\n" X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q @@ -512,7 +532,7 @@ s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || - { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } + { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } # If we had to re-execute with $CONFIG_SHELL, we're ensured to have # already done that, so ensure we don't try to do so again and fall @@ -526,6 +546,10 @@ exit } + +# Determine whether it's possible to make 'echo' print without a newline. +# These variables are no longer used directly by Autoconf, but are AC_SUBSTed +# for compatibility with existing Makefiles. ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) @@ -539,6 +563,13 @@ ECHO_N='-n';; esac +# For backward compatibility with old third-party macros, we provide +# the shell variables $as_echo and $as_echo_n. New code should use +# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. +as_echo='printf %s\n' +as_echo_n='printf %s' + + rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file @@ -608,48 +639,44 @@ # Identity of this package. PACKAGE_NAME='QuantLib' PACKAGE_TARNAME='QuantLib' -PACKAGE_VERSION='1.21' -PACKAGE_STRING='QuantLib 1.21' +PACKAGE_VERSION='1.24' +PACKAGE_STRING='QuantLib 1.24' PACKAGE_BUGREPORT='quantlib-dev@lists.sourceforge.net' PACKAGE_URL='' ac_unique_file="ql/qldefines.hpp" # Factoring default headers for most tests. ac_includes_default="\ -#include -#ifdef HAVE_SYS_TYPES_H -# include -#endif -#ifdef HAVE_SYS_STAT_H -# include +#include +#ifdef HAVE_STDIO_H +# include #endif -#ifdef STDC_HEADERS +#ifdef HAVE_STDLIB_H # include -# include -#else -# ifdef HAVE_STDLIB_H -# include -# endif #endif #ifdef HAVE_STRING_H -# if !defined STDC_HEADERS && defined HAVE_MEMORY_H -# include -# endif # include #endif -#ifdef HAVE_STRINGS_H -# include -#endif #ifdef HAVE_INTTYPES_H # include #endif #ifdef HAVE_STDINT_H # include #endif +#ifdef HAVE_STRINGS_H +# include +#endif +#ifdef HAVE_SYS_TYPES_H +# include +#endif +#ifdef HAVE_SYS_STAT_H +# include +#endif #ifdef HAVE_UNISTD_H # include #endif" +ac_header_c_list= ac_subst_vars='am__EXEEXT_FALSE am__EXEEXT_TRUE LTLIBOBJS @@ -661,6 +688,7 @@ AUTO_EXAMPLES_FALSE AUTO_EXAMPLES_TRUE BOOST_INTERPROCESS_LIB +PTHREAD_CXXFLAGS BOOST_THREAD_LIB DVIPS MAKEINDEX @@ -676,6 +704,7 @@ BOOST_UNIT_TEST_FOUND_TRUE BOOST_UNIT_TEST_MAIN_CXXFLAGS BOOST_UNIT_TEST_LIB +CPP11_CXXFLAGS OPENMP_CXXFLAGS ENABLE_STATIC_FALSE ENABLE_STATIC_TRUE @@ -739,6 +768,9 @@ AM_DEFAULT_VERBOSITY AM_DEFAULT_V AM_V +CSCOPE +ETAGS +CTAGS am__untar am__tar AMTAR @@ -781,6 +813,7 @@ docdir oldincludedir includedir +runstatedir localstatedir sharedstatedir sysconfdir @@ -836,6 +869,7 @@ enable_std_function enable_std_tuple enable_std_classes +enable_disposable ' ac_precious_vars='build_alias host_alias @@ -891,6 +925,7 @@ sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' +runstatedir='${localstatedir}/run' includedir='${prefix}/include' oldincludedir='/usr/include' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' @@ -920,8 +955,6 @@ *) ac_optarg=yes ;; esac - # Accept the important Cygnus configure options, so we can diagnose typos. - case $ac_dashdash$ac_option in --) ac_dashdash=yes ;; @@ -962,9 +995,9 @@ ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - as_fn_error $? "invalid feature name: $ac_useropt" + as_fn_error $? "invalid feature name: \`$ac_useropt'" ac_useropt_orig=$ac_useropt - ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" @@ -988,9 +1021,9 @@ ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - as_fn_error $? "invalid feature name: $ac_useropt" + as_fn_error $? "invalid feature name: \`$ac_useropt'" ac_useropt_orig=$ac_useropt - ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" @@ -1143,6 +1176,15 @@ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; + -runstatedir | --runstatedir | --runstatedi | --runstated \ + | --runstate | --runstat | --runsta | --runst | --runs \ + | --run | --ru | --r) + ac_prev=runstatedir ;; + -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ + | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ + | --run=* | --ru=* | --r=*) + runstatedir=$ac_optarg ;; + -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ @@ -1192,9 +1234,9 @@ ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - as_fn_error $? "invalid package name: $ac_useropt" + as_fn_error $? "invalid package name: \`$ac_useropt'" ac_useropt_orig=$ac_useropt - ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" @@ -1208,9 +1250,9 @@ ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - as_fn_error $? "invalid package name: $ac_useropt" + as_fn_error $? "invalid package name: \`$ac_useropt'" ac_useropt_orig=$ac_useropt - ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" @@ -1254,9 +1296,9 @@ *) # FIXME: should be removed in autoconf 3.0. - $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 + printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && - $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 + printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" ;; @@ -1272,7 +1314,7 @@ case $enable_option_checking in no) ;; fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; - *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; + *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; esac fi @@ -1280,7 +1322,7 @@ for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ - libdir localedir mandir + libdir localedir mandir runstatedir do eval ac_val=\$$ac_var # Remove trailing slashes. @@ -1336,7 +1378,7 @@ X"$as_myself" : 'X\(//\)[^/]' \| \ X"$as_myself" : 'X\(//\)$' \| \ X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$as_myself" | +printf "%s\n" X"$as_myself" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q @@ -1393,7 +1435,7 @@ # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures QuantLib 1.21 to adapt to many kinds of systems. +\`configure' configures QuantLib 1.24 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1433,6 +1475,7 @@ --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] + --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] @@ -1463,7 +1506,7 @@ if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of QuantLib 1.21:";; + short | recursive ) echo "Configuration of QuantLib 1.24:";; esac cat <<\_ACEOF @@ -1505,7 +1548,8 @@ instances for different sessions. You will have to provide and link with the library a sessionId() function in namespace QuantLib, returning a - different session id for each session. + different session id for each session. This also + implies thread-safe Singleton initialization. --enable-thread-safe-observer-pattern If enabled, thread-safe version of the observer pattern will be used. You should enable it if you @@ -1515,8 +1559,9 @@ option is used together with --enable-std-pointers --enable-thread-safe-singleton-init If enabled, singleton initialization will be - thread-safe. This requires Boost 1.58 or later and - is not supported when sessions are enabled. + thread-safe. This requires Boost 1.58 or later. Note + that --enable-sessions implies thread-safe + initialization, whether this is defined or not --enable-parallel-unit-test-runner If enabled, a parallel unit test runner is used to execute the C++ test suite. This will reduce the @@ -1542,30 +1587,29 @@ resolution of date objects will be a single day. Intraday datetime resolution is experimental. --enable-std-pointers If enabled, std::shared_ptr and related classes and - functions will be used instead of boost::shared_ptr; - this requires you to set your compiler's standard to - at least C++11. If disabled (the default) the Boost - facilities are used. Note that std::shared_ptr does - not check access and can cause segmentation faults. - --enable-std-unique-ptr If enabled, std::unique_ptr will be used instead of - the deprecated std::auto_ptr; this requires you to - set your compiler's standard to at least C++11. If - disabled (the default), std::auto_ptr will still be - used. + functions will be used instead of boost::shared_ptr. + If disabled (the default) the Boost facilities are + used. Note that std::shared_ptr does not check + access and can cause segmentation faults. + --enable-std-unique-ptr If enabled (the default), std::unique_ptr will be + used instead of the deprecated std::auto_ptr. If + disabled, std::auto_ptr will still be used. --enable-std-function If enabled, std::function and std::bind will be used - instead of boost::function and boost::bind; this - requires you to set your compiler's standard to at - least C++11. If disabled (the default) the Boost - facilities are used. - --enable-std-tuple If enabled, std::tuple and related functions will be - used instead of boost::tuple; this requires you to - set your compiler's standard to at least C++11. If + instead of boost::function and boost::bind. If disabled (the default) the Boost facilities are used. + --enable-std-tuple If enabled, std::tuple and related functions will be + used instead of boost::tuple. If disabled (the + default) the Boost facilities are used. --enable-std-classes This is a shortcut for --enable-std-pointers --enable-std-unique-ptr --enable-std-function --enable-std-tuple. If enabled, this supersedes any --disable option passed for the above. + --enable-disposable If enabled, the Disposable class template will be + used; this should be no longer necessary in C++11 + and might interfere with compiler optimizations. If + disabled (the default) the class will only be an + alias for the underlying type. Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] @@ -1621,9 +1665,9 @@ case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) - ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. - ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; @@ -1651,7 +1695,8 @@ ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cd "$ac_dir" || { ac_status=$?; continue; } - # Check for guested configure. + # Check for configure.gnu first; this name is used for a wrapper for + # Metaconfig's "Configure" on case-insensitive file systems. if test -f "$ac_srcdir/configure.gnu"; then echo && $SHELL "$ac_srcdir/configure.gnu" --help=recursive @@ -1659,7 +1704,7 @@ echo && $SHELL "$ac_srcdir/configure" --help=recursive else - $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 + printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi || ac_status=$? cd "$ac_pwd" || { ac_status=$?; break; } done @@ -1668,10 +1713,10 @@ test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -QuantLib configure 1.21 -generated by GNU Autoconf 2.69 +QuantLib configure 1.24 +generated by GNU Autoconf 2.71 -Copyright (C) 2012 Free Software Foundation, Inc. +Copyright (C) 2021 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. @@ -1706,14 +1751,14 @@ ac_fn_c_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - rm -f conftest.$ac_objext + rm -f conftest.$ac_objext conftest.beam if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then @@ -1721,14 +1766,15 @@ cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err - } && test -s conftest.$ac_objext; then : + } && test -s conftest.$ac_objext +then : ac_retval=0 -else - $as_echo "$as_me: failed program was:" >&5 +else $as_nop + printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 @@ -1744,14 +1790,14 @@ ac_fn_cxx_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - rm -f conftest.$ac_objext + rm -f conftest.$ac_objext conftest.beam if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then @@ -1759,14 +1805,15 @@ cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err - } && test -s conftest.$ac_objext; then : + } && test -s conftest.$ac_objext +then : ac_retval=0 -else - $as_echo "$as_me: failed program was:" >&5 +else $as_nop + printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 @@ -1788,7 +1835,7 @@ *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err ac_status=$? if test -s conftest.err; then @@ -1796,14 +1843,15 @@ cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } > conftest.i && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err - }; then : + } +then : ac_retval=0 -else - $as_echo "$as_me: failed program was:" >&5 +else $as_nop + printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 @@ -1819,14 +1867,14 @@ ac_fn_c_try_link () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - rm -f conftest.$ac_objext conftest$ac_exeext + rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_link") 2>conftest.err ac_status=$? if test -s conftest.err; then @@ -1834,17 +1882,18 @@ cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || test -x conftest$ac_exeext - }; then : + } +then : ac_retval=0 -else - $as_echo "$as_me: failed program was:" >&5 +else $as_nop + printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 @@ -1866,83 +1915,44 @@ ac_fn_c_check_header_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 -$as_echo_n "checking for $2... " >&6; } -if eval \${$3+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +printf %s "checking for $2... " >&6; } +if eval test \${$3+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : eval "$3=yes" -else +else $as_nop eval "$3=no" fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi eval ac_res=\$$3 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_header_compile -# ac_fn_c_try_run LINENO -# ---------------------- -# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes -# that executables *can* be run. -ac_fn_c_try_run () -{ - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - if { { ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' - { { case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; }; then : - ac_retval=0 -else - $as_echo "$as_me: program exited with status $ac_status" >&5 - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_retval=$ac_status -fi - rm -rf conftest.dSYM conftest_ipa8_conftest.oo - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno - as_fn_set_status $ac_retval - -} # ac_fn_c_try_run - # ac_fn_c_check_func LINENO FUNC VAR # ---------------------------------- # Tests whether FUNC exists, setting the cache variable VAR accordingly ac_fn_c_check_func () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 -$as_echo_n "checking for $2... " >&6; } -if eval \${$3+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +printf %s "checking for $2... " >&6; } +if eval test \${$3+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Define $2 to an innocuous variant, in case declares $2. @@ -1950,16 +1960,9 @@ #define $2 innocuous_$2 /* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $2 (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include -#else -# include -#endif + which can conflict with char $2 (); below. */ +#include #undef $2 /* Override any GCC internal prototype to avoid an error. @@ -1977,24 +1980,25 @@ #endif int -main () +main (void) { return $2 (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : eval "$3=yes" -else +else $as_nop eval "$3=no" fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$3 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_func @@ -2011,7 +2015,7 @@ *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err ac_status=$? if test -s conftest.err; then @@ -2019,14 +2023,15 @@ cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } > conftest.i && { test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test ! -s conftest.err - }; then : + } +then : ac_retval=0 -else - $as_echo "$as_me: failed program was:" >&5 +else $as_nop + printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 @@ -2042,14 +2047,14 @@ ac_fn_cxx_try_link () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - rm -f conftest.$ac_objext conftest$ac_exeext + rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_link") 2>conftest.err ac_status=$? if test -s conftest.err; then @@ -2057,17 +2062,18 @@ cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || test -x conftest$ac_exeext - }; then : + } +then : ac_retval=0 -else - $as_echo "$as_me: failed program was:" >&5 +else $as_nop + printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 @@ -2081,14 +2087,34 @@ as_fn_set_status $ac_retval } # ac_fn_cxx_try_link +ac_configure_args_raw= +for ac_arg +do + case $ac_arg in + *\'*) + ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + as_fn_append ac_configure_args_raw " '$ac_arg'" +done + +case $ac_configure_args_raw in + *$as_nl*) + ac_safe_unquote= ;; + *) + ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. + ac_unsafe_a="$ac_unsafe_z#~" + ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" + ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; +esac + cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by QuantLib $as_me 1.21, which was -generated by GNU Autoconf 2.69. Invocation command line was +It was created by QuantLib $as_me 1.24, which was +generated by GNU Autoconf 2.71. Invocation command line was - $ $0 $@ + $ $0$ac_configure_args_raw _ACEOF exec 5>>config.log @@ -2121,8 +2147,12 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - $as_echo "PATH: $as_dir" + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + printf "%s\n" "PATH: $as_dir" done IFS=$as_save_IFS @@ -2157,7 +2187,7 @@ | -silent | --silent | --silen | --sile | --sil) continue ;; *\'*) - ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; @@ -2192,11 +2222,13 @@ # WARNING: Use '\'' to represent an apostrophe within the trap. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. trap 'exit_status=$? + # Sanitize IFS. + IFS=" "" $as_nl" # Save into config.log some information that might help in debugging. { echo - $as_echo "## ---------------- ## + printf "%s\n" "## ---------------- ## ## Cache variables. ## ## ---------------- ##" echo @@ -2207,8 +2239,8 @@ case $ac_val in #( *${as_nl}*) case $ac_var in #( - *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 -$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( @@ -2232,7 +2264,7 @@ ) echo - $as_echo "## ----------------- ## + printf "%s\n" "## ----------------- ## ## Output variables. ## ## ----------------- ##" echo @@ -2240,14 +2272,14 @@ do eval ac_val=\$$ac_var case $ac_val in - *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac - $as_echo "$ac_var='\''$ac_val'\''" + printf "%s\n" "$ac_var='\''$ac_val'\''" done | sort echo if test -n "$ac_subst_files"; then - $as_echo "## ------------------- ## + printf "%s\n" "## ------------------- ## ## File substitutions. ## ## ------------------- ##" echo @@ -2255,15 +2287,15 @@ do eval ac_val=\$$ac_var case $ac_val in - *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac - $as_echo "$ac_var='\''$ac_val'\''" + printf "%s\n" "$ac_var='\''$ac_val'\''" done | sort echo fi if test -s confdefs.h; then - $as_echo "## ----------- ## + printf "%s\n" "## ----------- ## ## confdefs.h. ## ## ----------- ##" echo @@ -2271,8 +2303,8 @@ echo fi test "$ac_signal" != 0 && - $as_echo "$as_me: caught signal $ac_signal" - $as_echo "$as_me: exit $exit_status" + printf "%s\n" "$as_me: caught signal $ac_signal" + printf "%s\n" "$as_me: exit $exit_status" } >&5 rm -f core *.core core.conftest.* && rm -f -r conftest* confdefs* conf$$* $ac_clean_files && @@ -2286,63 +2318,48 @@ # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -f -r conftest* confdefs.h -$as_echo "/* confdefs.h */" > confdefs.h +printf "%s\n" "/* confdefs.h */" > confdefs.h # Predefined preprocessor variables. -cat >>confdefs.h <<_ACEOF -#define PACKAGE_NAME "$PACKAGE_NAME" -_ACEOF +printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define PACKAGE_TARNAME "$PACKAGE_TARNAME" -_ACEOF +printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define PACKAGE_VERSION "$PACKAGE_VERSION" -_ACEOF +printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define PACKAGE_STRING "$PACKAGE_STRING" -_ACEOF +printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" -_ACEOF +printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define PACKAGE_URL "$PACKAGE_URL" -_ACEOF +printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h # Let the site file select an alternate cache file if it wants to. # Prefer an explicitly selected file to automatically selected ones. -ac_site_file1=NONE -ac_site_file2=NONE if test -n "$CONFIG_SITE"; then - # We do not want a PATH search for config.site. - case $CONFIG_SITE in #(( - -*) ac_site_file1=./$CONFIG_SITE;; - */*) ac_site_file1=$CONFIG_SITE;; - *) ac_site_file1=./$CONFIG_SITE;; - esac + ac_site_files="$CONFIG_SITE" elif test "x$prefix" != xNONE; then - ac_site_file1=$prefix/share/config.site - ac_site_file2=$prefix/etc/config.site + ac_site_files="$prefix/share/config.site $prefix/etc/config.site" else - ac_site_file1=$ac_default_prefix/share/config.site - ac_site_file2=$ac_default_prefix/etc/config.site + ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" fi -for ac_site_file in "$ac_site_file1" "$ac_site_file2" + +for ac_site_file in $ac_site_files do - test "x$ac_site_file" = xNONE && continue - if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 -$as_echo "$as_me: loading site script $ac_site_file" >&6;} + case $ac_site_file in #( + */*) : + ;; #( + *) : + ac_site_file=./$ac_site_file ;; +esac + if test -f "$ac_site_file" && test -r "$ac_site_file"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 +printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" \ - || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "failed to load site script $ac_site_file See \`config.log' for more details" "$LINENO" 5; } fi @@ -2352,166 +2369,777 @@ # Some versions of bash will fail to source /dev/null (special files # actually), so we avoid doing that. DJGPP emulates it as a regular file. if test /dev/null != "$cache_file" && test -f "$cache_file"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 -$as_echo "$as_me: loading cache $cache_file" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 +printf "%s\n" "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 -$as_echo "$as_me: creating cache $cache_file" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 +printf "%s\n" "$as_me: creating cache $cache_file" >&6;} >$cache_file fi -# Check that the precious variables saved in the cache have kept the same -# value. -ac_cache_corrupted=false -for ac_var in $ac_precious_vars; do - eval ac_old_set=\$ac_cv_env_${ac_var}_set - eval ac_new_set=\$ac_env_${ac_var}_set - eval ac_old_val=\$ac_cv_env_${ac_var}_value - eval ac_new_val=\$ac_env_${ac_var}_value - case $ac_old_set,$ac_new_set in - set,) - { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 -$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} - ac_cache_corrupted=: ;; - ,set) - { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 -$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} - ac_cache_corrupted=: ;; - ,);; - *) - if test "x$ac_old_val" != "x$ac_new_val"; then - # differences in whitespace do not lead to failure. - ac_old_val_w=`echo x $ac_old_val` - ac_new_val_w=`echo x $ac_new_val` - if test "$ac_old_val_w" != "$ac_new_val_w"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 -$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} - ac_cache_corrupted=: - else - { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 -$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} - eval $ac_var=\$ac_old_val - fi - { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 -$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 -$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} - fi;; - esac - # Pass precious variables to config.status. - if test "$ac_new_set" = set; then - case $ac_new_val in - *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; - *) ac_arg=$ac_var=$ac_new_val ;; - esac - case " $ac_configure_args " in - *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. - *) as_fn_append ac_configure_args " '$ac_arg'" ;; - esac - fi -done -if $ac_cache_corrupted; then - { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 -$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} - as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 -fi -## -------------------- ## -## Main body of script. ## -## -------------------- ## +# Test code for whether the C compiler supports C89 (global declarations) +ac_c_conftest_c89_globals=' +/* Does the compiler advertise C89 conformance? + Do not test the value of __STDC__, because some compilers set it to 0 + while being otherwise adequately conformant. */ +#if !defined __STDC__ +# error "Compiler does not advertise C89 conformance" +#endif -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu +#include +#include +struct stat; +/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ +struct buf { int x; }; +struct buf * (*rcsopen) (struct buf *, struct stat *, int); +static char *e (p, i) + char **p; + int i; +{ + return p[i]; +} +static char *f (char * (*g) (char **, int), char **p, ...) +{ + char *s; + va_list v; + va_start (v,p); + s = g (p, va_arg (v,int)); + va_end (v); + return s; +} +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has + function prototypes and stuff, but not \xHH hex character constants. + These do not provoke an error unfortunately, instead are silently treated + as an "x". The following induces an error, until -std is added to get + proper ANSI mode. Curiously \x00 != x always comes out true, for an + array size at least. It is necessary to write \x00 == 0 to get something + that is true only with -std. */ +int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters + inside strings and character constants. */ +#define FOO(x) '\''x'\'' +int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; +int test (int i, double x); +struct s1 {int (*f) (int a);}; +struct s2 {int (*f) (double a);}; +int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), + int, int);' -ac_aux_dir= -for ac_dir in config "$srcdir"/config; do - if test -f "$ac_dir/install-sh"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install-sh -c" - break - elif test -f "$ac_dir/install.sh"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install.sh -c" - break - elif test -f "$ac_dir/shtool"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/shtool install -c" - break - fi -done -if test -z "$ac_aux_dir"; then - as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5 -fi +# Test code for whether the C compiler supports C89 (body of main). +ac_c_conftest_c89_main=' +ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); +' -# These three variables are undocumented and unsupported, -# and are intended to be withdrawn in a future Autoconf release. -# They can cause serious problems if a builder's source tree is in a directory -# whose full name contains unusual characters. -ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. -ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. -ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. +# Test code for whether the C compiler supports C99 (global declarations) +ac_c_conftest_c99_globals=' +// Does the compiler advertise C99 conformance? +#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L +# error "Compiler does not advertise C99 conformance" +#endif +#include +extern int puts (const char *); +extern int printf (const char *, ...); +extern int dprintf (int, const char *, ...); +extern void *malloc (size_t); + +// Check varargs macros. These examples are taken from C99 6.10.3.5. +// dprintf is used instead of fprintf to avoid needing to declare +// FILE and stderr. +#define debug(...) dprintf (2, __VA_ARGS__) +#define showlist(...) puts (#__VA_ARGS__) +#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) +static void +test_varargs_macros (void) +{ + int x = 1234; + int y = 5678; + debug ("Flag"); + debug ("X = %d\n", x); + showlist (The first, second, and third items.); + report (x>y, "x is %d but y is %d", x, y); +} -ac_config_headers="$ac_config_headers ql/config.hpp" +// Check long long types. +#define BIG64 18446744073709551615ull +#define BIG32 4294967295ul +#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) +#if !BIG_OK + #error "your preprocessor is broken" +#endif +#if BIG_OK +#else + #error "your preprocessor is broken" +#endif +static long long int bignum = -9223372036854775807LL; +static unsigned long long int ubignum = BIG64; -am__api_version='1.16' +struct incomplete_array +{ + int datasize; + double data[]; +}; -# Find a good install program. We prefer a C program (faster), -# so one script is as good as another. But avoid the broken or -# incompatible versions: -# SysV /etc/install, /usr/sbin/install -# SunOS /usr/etc/install -# IRIX /sbin/install -# AIX /bin/install -# AmigaOS /C/install, which installs bootblocks on floppy discs -# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag -# AFS /usr/afsws/bin/install, which mishandles nonexistent args -# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" -# OS/2's system install, which has a completely different semantic -# ./install, which can be erroneously created by make from ./install.sh. -# Reject install programs that cannot install multiple files. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 -$as_echo_n "checking for a BSD-compatible install... " >&6; } -if test -z "$INSTALL"; then -if ${ac_cv_path_install+:} false; then : - $as_echo_n "(cached) " >&6 -else - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - # Account for people who put trailing slashes in PATH elements. -case $as_dir/ in #(( - ./ | .// | /[cC]/* | \ - /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ - ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ - /usr/ucb/* ) ;; - *) +struct named_init { + int number; + const wchar_t *name; + double average; +}; + +typedef const char *ccp; + +static inline int +test_restrict (ccp restrict text) +{ + // See if C++-style comments work. + // Iterate through items via the restricted pointer. + // Also check for declarations in for loops. + for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) + continue; + return 0; +} + +// Check varargs and va_copy. +static bool +test_varargs (const char *format, ...) +{ + va_list args; + va_start (args, format); + va_list args_copy; + va_copy (args_copy, args); + + const char *str = ""; + int number = 0; + float fnumber = 0; + + while (*format) + { + switch (*format++) + { + case '\''s'\'': // string + str = va_arg (args_copy, const char *); + break; + case '\''d'\'': // int + number = va_arg (args_copy, int); + break; + case '\''f'\'': // float + fnumber = va_arg (args_copy, double); + break; + default: + break; + } + } + va_end (args_copy); + va_end (args); + + return *str && number && fnumber; +} +' + +# Test code for whether the C compiler supports C99 (body of main). +ac_c_conftest_c99_main=' + // Check bool. + _Bool success = false; + success |= (argc != 0); + + // Check restrict. + if (test_restrict ("String literal") == 0) + success = true; + char *restrict newvar = "Another string"; + + // Check varargs. + success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); + test_varargs_macros (); + + // Check flexible array members. + struct incomplete_array *ia = + malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); + ia->datasize = 10; + for (int i = 0; i < ia->datasize; ++i) + ia->data[i] = i * 1.234; + + // Check named initializers. + struct named_init ni = { + .number = 34, + .name = L"Test wide string", + .average = 543.34343, + }; + + ni.number = 58; + + int dynamic_array[ni.number]; + dynamic_array[0] = argv[0][0]; + dynamic_array[ni.number - 1] = 543; + + // work around unused variable warnings + ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' + || dynamic_array[ni.number - 1] != 543); +' + +# Test code for whether the C compiler supports C11 (global declarations) +ac_c_conftest_c11_globals=' +// Does the compiler advertise C11 conformance? +#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L +# error "Compiler does not advertise C11 conformance" +#endif + +// Check _Alignas. +char _Alignas (double) aligned_as_double; +char _Alignas (0) no_special_alignment; +extern char aligned_as_int; +char _Alignas (0) _Alignas (int) aligned_as_int; + +// Check _Alignof. +enum +{ + int_alignment = _Alignof (int), + int_array_alignment = _Alignof (int[100]), + char_alignment = _Alignof (char) +}; +_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); + +// Check _Noreturn. +int _Noreturn does_not_return (void) { for (;;) continue; } + +// Check _Static_assert. +struct test_static_assert +{ + int x; + _Static_assert (sizeof (int) <= sizeof (long int), + "_Static_assert does not work in struct"); + long int y; +}; + +// Check UTF-8 literals. +#define u8 syntax error! +char const utf8_literal[] = u8"happens to be ASCII" "another string"; + +// Check duplicate typedefs. +typedef long *long_ptr; +typedef long int *long_ptr; +typedef long_ptr long_ptr; + +// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. +struct anonymous +{ + union { + struct { int i; int j; }; + struct { int k; long int l; } w; + }; + int m; +} v1; +' + +# Test code for whether the C compiler supports C11 (body of main). +ac_c_conftest_c11_main=' + _Static_assert ((offsetof (struct anonymous, i) + == offsetof (struct anonymous, w.k)), + "Anonymous union alignment botch"); + v1.i = 2; + v1.w.k = 5; + ok |= v1.i != 5; +' + +# Test code for whether the C compiler supports C11 (complete). +ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} +${ac_c_conftest_c99_globals} +${ac_c_conftest_c11_globals} + +int +main (int argc, char **argv) +{ + int ok = 0; + ${ac_c_conftest_c89_main} + ${ac_c_conftest_c99_main} + ${ac_c_conftest_c11_main} + return ok; +} +" + +# Test code for whether the C compiler supports C99 (complete). +ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} +${ac_c_conftest_c99_globals} + +int +main (int argc, char **argv) +{ + int ok = 0; + ${ac_c_conftest_c89_main} + ${ac_c_conftest_c99_main} + return ok; +} +" + +# Test code for whether the C compiler supports C89 (complete). +ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} + +int +main (int argc, char **argv) +{ + int ok = 0; + ${ac_c_conftest_c89_main} + return ok; +} +" + +# Test code for whether the C++ compiler supports C++98 (global declarations) +ac_cxx_conftest_cxx98_globals=' +// Does the compiler advertise C++98 conformance? +#if !defined __cplusplus || __cplusplus < 199711L +# error "Compiler does not advertise C++98 conformance" +#endif + +// These inclusions are to reject old compilers that +// lack the unsuffixed header files. +#include +#include + +// and are *not* freestanding headers in C++98. +extern void assert (int); +namespace std { + extern int strcmp (const char *, const char *); +} + +// Namespaces, exceptions, and templates were all added after "C++ 2.0". +using std::exception; +using std::strcmp; + +namespace { + +void test_exception_syntax() +{ + try { + throw "test"; + } catch (const char *s) { + // Extra parentheses suppress a warning when building autoconf itself, + // due to lint rules shared with more typical C programs. + assert (!(strcmp) (s, "test")); + } +} + +template struct test_template +{ + T const val; + explicit test_template(T t) : val(t) {} + template T add(U u) { return static_cast(u) + val; } +}; + +} // anonymous namespace +' + +# Test code for whether the C++ compiler supports C++98 (body of main) +ac_cxx_conftest_cxx98_main=' + assert (argc); + assert (! argv[0]); +{ + test_exception_syntax (); + test_template tt (2.0); + assert (tt.add (4) == 6.0); + assert (true && !false); +} +' + +# Test code for whether the C++ compiler supports C++11 (global declarations) +ac_cxx_conftest_cxx11_globals=' +// Does the compiler advertise C++ 2011 conformance? +#if !defined __cplusplus || __cplusplus < 201103L +# error "Compiler does not advertise C++11 conformance" +#endif + +namespace cxx11test +{ + constexpr int get_val() { return 20; } + + struct testinit + { + int i; + double d; + }; + + class delegate + { + public: + delegate(int n) : n(n) {} + delegate(): delegate(2354) {} + + virtual int getval() { return this->n; }; + protected: + int n; + }; + + class overridden : public delegate + { + public: + overridden(int n): delegate(n) {} + virtual int getval() override final { return this->n * 2; } + }; + + class nocopy + { + public: + nocopy(int i): i(i) {} + nocopy() = default; + nocopy(const nocopy&) = delete; + nocopy & operator=(const nocopy&) = delete; + private: + int i; + }; + + // for testing lambda expressions + template Ret eval(Fn f, Ret v) + { + return f(v); + } + + // for testing variadic templates and trailing return types + template auto sum(V first) -> V + { + return first; + } + template auto sum(V first, Args... rest) -> V + { + return first + sum(rest...); + } +} +' + +# Test code for whether the C++ compiler supports C++11 (body of main) +ac_cxx_conftest_cxx11_main=' +{ + // Test auto and decltype + auto a1 = 6538; + auto a2 = 48573953.4; + auto a3 = "String literal"; + + int total = 0; + for (auto i = a3; *i; ++i) { total += *i; } + + decltype(a2) a4 = 34895.034; +} +{ + // Test constexpr + short sa[cxx11test::get_val()] = { 0 }; +} +{ + // Test initializer lists + cxx11test::testinit il = { 4323, 435234.23544 }; +} +{ + // Test range-based for + int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3, + 14, 19, 17, 8, 6, 20, 16, 2, 11, 1}; + for (auto &x : array) { x += 23; } +} +{ + // Test lambda expressions + using cxx11test::eval; + assert (eval ([](int x) { return x*2; }, 21) == 42); + double d = 2.0; + assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0); + assert (d == 5.0); + assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0); + assert (d == 5.0); +} +{ + // Test use of variadic templates + using cxx11test::sum; + auto a = sum(1); + auto b = sum(1, 2); + auto c = sum(1.0, 2.0, 3.0); +} +{ + // Test constructor delegation + cxx11test::delegate d1; + cxx11test::delegate d2(); + cxx11test::delegate d3(45); +} +{ + // Test override and final + cxx11test::overridden o1(55464); +} +{ + // Test nullptr + char *c = nullptr; +} +{ + // Test template brackets + test_template<::test_template> v(test_template(12)); +} +{ + // Unicode literals + char const *utf8 = u8"UTF-8 string \u2500"; + char16_t const *utf16 = u"UTF-8 string \u2500"; + char32_t const *utf32 = U"UTF-32 string \u2500"; +} +' + +# Test code for whether the C compiler supports C++11 (complete). +ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals} +${ac_cxx_conftest_cxx11_globals} + +int +main (int argc, char **argv) +{ + int ok = 0; + ${ac_cxx_conftest_cxx98_main} + ${ac_cxx_conftest_cxx11_main} + return ok; +} +" + +# Test code for whether the C compiler supports C++98 (complete). +ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals} +int +main (int argc, char **argv) +{ + int ok = 0; + ${ac_cxx_conftest_cxx98_main} + return ok; +} +" + +as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" +as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" +as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" +as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" +as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" +as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" +as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" +as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" +as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" + +# Auxiliary files required by this configure script. +ac_aux_files="config.guess config.sub ltmain.sh compile missing install-sh" + +# Locations in which to look for auxiliary files. +ac_aux_dir_candidates="${srcdir}/config" + +# Search for a directory containing all of the required auxiliary files, +# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. +# If we don't find one directory that contains all the files we need, +# we report the set of missing files from the *first* directory in +# $ac_aux_dir_candidates and give up. +ac_missing_aux_files="" +ac_first_candidate=: +printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +as_found=false +for as_dir in $ac_aux_dir_candidates +do + IFS=$as_save_IFS + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + as_found=: + + printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 + ac_aux_dir_found=yes + ac_install_sh= + for ac_aux in $ac_aux_files + do + # As a special case, if "install-sh" is required, that requirement + # can be satisfied by any of "install-sh", "install.sh", or "shtool", + # and $ac_install_sh is set appropriately for whichever one is found. + if test x"$ac_aux" = x"install-sh" + then + if test -f "${as_dir}install-sh"; then + printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 + ac_install_sh="${as_dir}install-sh -c" + elif test -f "${as_dir}install.sh"; then + printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 + ac_install_sh="${as_dir}install.sh -c" + elif test -f "${as_dir}shtool"; then + printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 + ac_install_sh="${as_dir}shtool install -c" + else + ac_aux_dir_found=no + if $ac_first_candidate; then + ac_missing_aux_files="${ac_missing_aux_files} install-sh" + else + break + fi + fi + else + if test -f "${as_dir}${ac_aux}"; then + printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 + else + ac_aux_dir_found=no + if $ac_first_candidate; then + ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" + else + break + fi + fi + fi + done + if test "$ac_aux_dir_found" = yes; then + ac_aux_dir="$as_dir" + break + fi + ac_first_candidate=false + + as_found=false +done +IFS=$as_save_IFS +if $as_found +then : + +else $as_nop + as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 +fi + + +# These three variables are undocumented and unsupported, +# and are intended to be withdrawn in a future Autoconf release. +# They can cause serious problems if a builder's source tree is in a directory +# whose full name contains unusual characters. +if test -f "${ac_aux_dir}config.guess"; then + ac_config_guess="$SHELL ${ac_aux_dir}config.guess" +fi +if test -f "${ac_aux_dir}config.sub"; then + ac_config_sub="$SHELL ${ac_aux_dir}config.sub" +fi +if test -f "$ac_aux_dir/configure"; then + ac_configure="$SHELL ${ac_aux_dir}configure" +fi + +# Check that the precious variables saved in the cache have kept the same +# value. +ac_cache_corrupted=false +for ac_var in $ac_precious_vars; do + eval ac_old_set=\$ac_cv_env_${ac_var}_set + eval ac_new_set=\$ac_env_${ac_var}_set + eval ac_old_val=\$ac_cv_env_${ac_var}_value + eval ac_new_val=\$ac_env_${ac_var}_value + case $ac_old_set,$ac_new_set in + set,) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 +printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,set) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 +printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,);; + *) + if test "x$ac_old_val" != "x$ac_new_val"; then + # differences in whitespace do not lead to failure. + ac_old_val_w=`echo x $ac_old_val` + ac_new_val_w=`echo x $ac_new_val` + if test "$ac_old_val_w" != "$ac_new_val_w"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 +printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} + ac_cache_corrupted=: + else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 +printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} + eval $ac_var=\$ac_old_val + fi + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 +printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 +printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} + fi;; + esac + # Pass precious variables to config.status. + if test "$ac_new_set" = set; then + case $ac_new_val in + *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; + *) ac_arg=$ac_var=$ac_new_val ;; + esac + case " $ac_configure_args " in + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. + *) as_fn_append ac_configure_args " '$ac_arg'" ;; + esac + fi +done +if $ac_cache_corrupted; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 +printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} + as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' + and start over" "$LINENO" 5 +fi +## -------------------- ## +## Main body of script. ## +## -------------------- ## + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + + + + +ac_config_headers="$ac_config_headers ql/config.hpp" + +am__api_version='1.16' + + + + # Find a good install program. We prefer a C program (faster), +# so one script is as good as another. But avoid the broken or +# incompatible versions: +# SysV /etc/install, /usr/sbin/install +# SunOS /usr/etc/install +# IRIX /sbin/install +# AIX /bin/install +# AmigaOS /C/install, which installs bootblocks on floppy discs +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag +# AFS /usr/afsws/bin/install, which mishandles nonexistent args +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" +# OS/2's system install, which has a completely different semantic +# ./install, which can be erroneously created by make from ./install.sh. +# Reject install programs that cannot install multiple files. +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 +printf %s "checking for a BSD-compatible install... " >&6; } +if test -z "$INSTALL"; then +if test ${ac_cv_path_install+y} +then : + printf %s "(cached) " >&6 +else $as_nop + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + # Account for fact that we put trailing slashes in our PATH walk. +case $as_dir in #(( + ./ | /[cC]/* | \ + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ + ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ + /usr/ucb/* ) ;; + *) # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then if test $ac_prog = install && - grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : elif test $ac_prog = install && - grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # program-specific install script used by HP pwplus--don't use. : else @@ -2519,12 +3147,12 @@ echo one > conftest.one echo two > conftest.two mkdir conftest.dir - if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && + if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && test -s conftest.one && test -s conftest.two && test -s conftest.dir/conftest.one && test -s conftest.dir/conftest.two then - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" + ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" break 3 fi fi @@ -2540,7 +3168,7 @@ rm -rf conftest.one conftest.two conftest.dir fi - if test "${ac_cv_path_install+set}" = set; then + if test ${ac_cv_path_install+y}; then INSTALL=$ac_cv_path_install else # As a last resort, use the slow shell script. Don't cache a @@ -2550,8 +3178,8 @@ INSTALL=$ac_install_sh fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 -$as_echo "$INSTALL" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 +printf "%s\n" "$INSTALL" >&6; } # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. @@ -2561,8 +3189,8 @@ test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 -$as_echo_n "checking whether build environment is sane... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 +printf %s "checking whether build environment is sane... " >&6; } # Reject unsafe characters in $srcdir or the absolute working directory # name. Accept space and tab only in the latter. am_lf=' @@ -2616,8 +3244,8 @@ as_fn_error $? "newly created file is older than distributed files! Check your system clock" "$LINENO" 5 fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } # If we didn't sleep, we still need to ensure time stamps of config.status and # generated files are strictly newer. am_sleep_pid= @@ -2636,12 +3264,14 @@ # Double any \ or $. # By default was `s,x,x', remove it if useless. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' -program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` +program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` + # Expand $ac_aux_dir to an absolute path. am_aux_dir=`cd "$ac_aux_dir" && pwd` -if test x"${MISSING+set}" != xset; then + + if test x"${MISSING+set}" != xset; then MISSING="\${SHELL} '$am_aux_dir/missing'" fi # Use eval to expand $SHELL @@ -2649,8 +3279,8 @@ am_missing_run="$MISSING " else am_missing_run= - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 -$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 +printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} fi if test x"${install_sh+set}" != xset; then @@ -2670,11 +3300,12 @@ if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_STRIP+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_STRIP+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else @@ -2682,11 +3313,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -2697,11 +3332,11 @@ fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 -$as_echo "$STRIP" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 +printf "%s\n" "$STRIP" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -2710,11 +3345,12 @@ ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_STRIP+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_STRIP+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else @@ -2722,11 +3358,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_STRIP="strip" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -2737,11 +3377,11 @@ fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 -$as_echo "$ac_ct_STRIP" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 +printf "%s\n" "$ac_ct_STRIP" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi if test "x$ac_ct_STRIP" = x; then @@ -2749,8 +3389,8 @@ else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP @@ -2762,25 +3402,31 @@ fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 -$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 +printf %s "checking for a race-free mkdir -p... " >&6; } if test -z "$MKDIR_P"; then - if ${ac_cv_path_mkdir+:} false; then : - $as_echo_n "(cached) " >&6 -else + if test ${ac_cv_path_mkdir+y} +then : + printf %s "(cached) " >&6 +else $as_nop as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_prog in mkdir gmkdir; do for ac_exec_ext in '' $ac_executable_extensions; do - as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue - case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( - 'mkdir (GNU coreutils) '* | \ - 'mkdir (coreutils) '* | \ + as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue + case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( + 'mkdir ('*'coreutils) '* | \ + 'BusyBox '* | \ 'mkdir (fileutils) '4.1*) - ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext + ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext break 3;; esac done @@ -2791,7 +3437,7 @@ fi test -d ./--version && rmdir ./--version - if test "${ac_cv_path_mkdir+set}" = set; then + if test ${ac_cv_path_mkdir+y}; then MKDIR_P="$ac_cv_path_mkdir -p" else # As a last resort, use the slow shell script. Don't cache a @@ -2801,18 +3447,19 @@ MKDIR_P="$ac_install_sh -d" fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 -$as_echo "$MKDIR_P" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 +printf "%s\n" "$MKDIR_P" >&6; } for ac_prog in gawk mawk nawk awk do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_AWK+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_AWK+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else @@ -2820,11 +3467,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_AWK="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -2835,24 +3486,25 @@ fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 -$as_echo "$AWK" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 +printf "%s\n" "$AWK" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi test -n "$AWK" && break done -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 -$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 +printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } set x ${MAKE-make} -ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` -if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : - $as_echo_n "(cached) " >&6 -else +ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` +if eval test \${ac_cv_prog_make_${ac_make}_set+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat >conftest.make <<\_ACEOF SHELL = /bin/sh all: @@ -2868,12 +3520,12 @@ rm -f conftest.make fi if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } SET_MAKE= else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } SET_MAKE="MAKE=${MAKE-make}" fi @@ -2887,7 +3539,8 @@ rmdir .tst 2>/dev/null # Check whether --enable-silent-rules was given. -if test "${enable_silent_rules+set}" = set; then : +if test ${enable_silent_rules+y} +then : enableval=$enable_silent_rules; fi @@ -2897,12 +3550,13 @@ *) AM_DEFAULT_VERBOSITY=1;; esac am_make=${MAKE-make} -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 -$as_echo_n "checking whether $am_make supports nested variables... " >&6; } -if ${am_cv_make_support_nested_variables+:} false; then : - $as_echo_n "(cached) " >&6 -else - if $as_echo 'TRUE=$(BAR$(V)) +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 +printf %s "checking whether $am_make supports nested variables... " >&6; } +if test ${am_cv_make_support_nested_variables+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if printf "%s\n" 'TRUE=$(BAR$(V)) BAR0=false BAR1=true V=1 @@ -2914,8 +3568,8 @@ am_cv_make_support_nested_variables=no fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 -$as_echo "$am_cv_make_support_nested_variables" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 +printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } if test $am_cv_make_support_nested_variables = yes; then AM_V='$(V)' AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' @@ -2947,17 +3601,13 @@ # Define the identity of the package. PACKAGE='QuantLib' - VERSION='1.21' + VERSION='1.24' -cat >>confdefs.h <<_ACEOF -#define PACKAGE "$PACKAGE" -_ACEOF +printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define VERSION "$VERSION" -_ACEOF +printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h # Some tools Automake needs. @@ -2989,12 +3639,143 @@ # We'll loop over all known methods to create a tar archive until one works. -_am_tools='gnutar pax cpio none' +_am_tools='gnutar plaintar pax cpio none' -am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' +# The POSIX 1988 'ustar' format is defined with fixed-size fields. + # There is notably a 21 bits limit for the UID and the GID. In fact, + # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 + # and bug#13588). + am_max_uid=2097151 # 2^21 - 1 + am_max_gid=$am_max_uid + # The $UID and $GID variables are not portable, so we need to resort + # to the POSIX-mandated id(1) utility. Errors in the 'id' calls + # below are definitely unexpected, so allow the users to see them + # (that is, avoid stderr redirection). + am_uid=`id -u || echo unknown` + am_gid=`id -g || echo unknown` + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5 +printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; } + if test $am_uid -le $am_max_uid; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } + else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + _am_tools=none + fi + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5 +printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; } + if test $am_gid -le $am_max_gid; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } + else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + _am_tools=none + fi + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5 +printf %s "checking how to create a ustar tar archive... " >&6; } + # Go ahead even if we have the value already cached. We do so because we + # need to set the values for the 'am__tar' and 'am__untar' variables. + _am_tools=${am_cv_prog_tar_ustar-$_am_tools} + + for _am_tool in $_am_tools; do + case $_am_tool in + gnutar) + for _am_tar in tar gnutar gtar; do + { echo "$as_me:$LINENO: $_am_tar --version" >&5 + ($_am_tar --version) >&5 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && break + done + am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"' + am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"' + am__untar="$_am_tar -xf -" + ;; + plaintar) + # Must skip GNU tar: if it does not support --format= it doesn't create + # ustar tarball either. + (tar --version) >/dev/null 2>&1 && continue + am__tar='tar chf - "$$tardir"' + am__tar_='tar chf - "$tardir"' + am__untar='tar xf -' + ;; + pax) + am__tar='pax -L -x ustar -w "$$tardir"' + am__tar_='pax -L -x ustar -w "$tardir"' + am__untar='pax -r' + ;; + cpio) + am__tar='find "$$tardir" -print | cpio -o -H ustar -L' + am__tar_='find "$tardir" -print | cpio -o -H ustar -L' + am__untar='cpio -i -H ustar -d' + ;; + none) + am__tar=false + am__tar_=false + am__untar=false + ;; + esac + # If the value was cached, stop now. We just wanted to have am__tar + # and am__untar set. + test -n "${am_cv_prog_tar_ustar}" && break + + # tar/untar a dummy directory, and stop if the command works. + rm -rf conftest.dir + mkdir conftest.dir + echo GrepMe > conftest.dir/file + { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5 + (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } + rm -rf conftest.dir + if test -s conftest.tar; then + { echo "$as_me:$LINENO: $am__untar &5 + ($am__untar &5 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } + { echo "$as_me:$LINENO: cat conftest.dir/file" >&5 + (cat conftest.dir/file) >&5 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } + grep GrepMe conftest.dir/file >/dev/null 2>&1 && break + fi + done + rm -rf conftest.dir + + if test ${am_cv_prog_tar_ustar+y} +then : + printf %s "(cached) " >&6 +else $as_nop + am_cv_prog_tar_ustar=$_am_tool +fi + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5 +printf "%s\n" "$am_cv_prog_tar_ustar" >&6; } + + + + + +# Variables for tags utilities; see am/tags.am +if test -z "$CTAGS"; then + CTAGS=ctags +fi + +if test -z "$ETAGS"; then + ETAGS=etags +fi + +if test -z "$CSCOPE"; then + CSCOPE=cscope +fi @@ -3048,11 +3829,12 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_AWK+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_AWK+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else @@ -3060,11 +3842,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_AWK="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -3075,11 +3861,11 @@ fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 -$as_echo "$AWK" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 +printf "%s\n" "$AWK" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -3092,9 +3878,10 @@ # Check whether --with-boost-include was given. -if test "${with_boost_include+set}" = set; then : +if test ${with_boost_include+y} +then : withval=$with_boost_include; ql_boost_include_path="`cd ${withval} 2>/dev/null && pwd`" -else +else $as_nop ql_boost_include_path="" fi @@ -3106,9 +3893,10 @@ fi # Check whether --with-boost-lib was given. -if test "${with_boost_lib+set}" = set; then : +if test ${with_boost_lib+y} +then : withval=$with_boost_lib; ql_boost_lib_path="`cd ${withval} 2>/dev/null && pwd`" -else +else $as_nop ql_boost_lib_path="" fi @@ -3122,6 +3910,15 @@ # Continue setup + + + + + + + + + ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -3130,11 +3927,12 @@ if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_CC+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else @@ -3142,11 +3940,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}gcc" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -3157,11 +3959,11 @@ fi CC=$ac_cv_prog_CC if test -n "$CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -$as_echo "$CC" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +printf "%s\n" "$CC" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -3170,11 +3972,12 @@ ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_CC+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else @@ -3182,11 +3985,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="gcc" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -3197,11 +4004,11 @@ fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 -$as_echo "$ac_ct_CC" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +printf "%s\n" "$ac_ct_CC" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi if test "x$ac_ct_CC" = x; then @@ -3209,8 +4016,8 @@ else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC @@ -3223,11 +4030,12 @@ if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_CC+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else @@ -3235,11 +4043,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}cc" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -3250,11 +4062,11 @@ fi CC=$ac_cv_prog_CC if test -n "$CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -$as_echo "$CC" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +printf "%s\n" "$CC" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -3263,11 +4075,12 @@ if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_CC+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else @@ -3276,15 +4089,19 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -3300,18 +4117,18 @@ # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift - ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" + ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" fi fi fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -$as_echo "$CC" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +printf "%s\n" "$CC" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -3322,11 +4139,12 @@ do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_CC+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else @@ -3334,11 +4152,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -3349,11 +4171,11 @@ fi CC=$ac_cv_prog_CC if test -n "$CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -$as_echo "$CC" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +printf "%s\n" "$CC" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -3366,11 +4188,12 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_CC+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else @@ -3378,11 +4201,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -3393,11 +4220,11 @@ fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 -$as_echo "$ac_ct_CC" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +printf "%s\n" "$ac_ct_CC" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -3409,8 +4236,8 @@ else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC @@ -3418,25 +4245,129 @@ fi fi +if test -z "$CC"; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. +set dummy ${ac_tool_prefix}clang; ac_word=$2 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_CC+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_prog_CC="${ac_tool_prefix}clang" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +printf "%s\n" "$CC" >&6; } +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_CC"; then + ac_ct_CC=$CC + # Extract the first word of "clang", so it can be a program name with args. +set dummy clang; ac_word=$2 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_CC+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_CC="clang" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +printf "%s\n" "$ac_ct_CC" >&6; } +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +fi + + if test "x$ac_ct_CC" = x; then + CC="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CC=$ac_ct_CC + fi +else + CC="$ac_cv_prog_CC" +fi + +fi -test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "no acceptable C compiler found in \$PATH See \`config.log' for more details" "$LINENO" 5; } # Provide some information about the compiler. -$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 +printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 set X $ac_compile ac_compiler=$2 -for ac_option in --version -v -V -qversion; do +for ac_option in --version -v -V -qversion -version; do { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then @@ -3446,7 +4377,7 @@ cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done @@ -3454,7 +4385,7 @@ /* end confdefs.h. */ int -main () +main (void) { ; @@ -3466,9 +4397,9 @@ # Try to create an executable without -o first, disregard a.out. # It will help us diagnose broken compilers, and finding out an intuition # of exeext. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 -$as_echo_n "checking whether the C compiler works... " >&6; } -ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 +printf %s "checking whether the C compiler works... " >&6; } +ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` # The possible output files: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" @@ -3489,11 +4420,12 @@ *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_link_default") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then : + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +then : # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' # in a Makefile. We should not override ac_cv_exeext if it was cached, @@ -3510,7 +4442,7 @@ # certainly right. break;; *.* ) - if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; + if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; then :; else ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` fi @@ -3526,44 +4458,46 @@ done test "$ac_cv_exeext" = no && ac_cv_exeext= -else +else $as_nop ac_file='' fi -if test -z "$ac_file"; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -$as_echo "$as_me: failed program was:" >&5 +if test -z "$ac_file" +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "C compiler cannot create executables See \`config.log' for more details" "$LINENO" 5; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 -$as_echo_n "checking for C compiler default output file name... " >&6; } -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 -$as_echo "$ac_file" >&6; } +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 +printf %s "checking for C compiler default output file name... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 +printf "%s\n" "$ac_file" >&6; } ac_exeext=$ac_cv_exeext rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out ac_clean_files=$ac_clean_files_save -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 -$as_echo_n "checking for suffix of executables... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 +printf %s "checking for suffix of executables... " >&6; } if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then : + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +then : # If both `conftest.exe' and `conftest' are `present' (well, observable) # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will # work properly (i.e., refer to `conftest.exe'), while it won't with @@ -3577,15 +4511,15 @@ * ) break;; esac done -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +else $as_nop + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of executables: cannot compile and link See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest conftest$ac_cv_exeext -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 -$as_echo "$ac_cv_exeext" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 +printf "%s\n" "$ac_cv_exeext" >&6; } rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext @@ -3594,7 +4528,7 @@ /* end confdefs.h. */ #include int -main () +main (void) { FILE *f = fopen ("conftest.out", "w"); return ferror (f) || fclose (f) != 0; @@ -3606,8 +4540,8 @@ ac_clean_files="$ac_clean_files conftest.out" # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 -$as_echo_n "checking whether we are cross compiling... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 +printf %s "checking whether we are cross compiling... " >&6; } if test "$cross_compiling" != yes; then { { ac_try="$ac_link" case "(($ac_try" in @@ -3615,10 +4549,10 @@ *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if { ac_try='./conftest$ac_cv_exeext' { { case "(($ac_try" in @@ -3626,39 +4560,40 @@ *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then cross_compiling=no else if test "$cross_compiling" = maybe; then cross_compiling=yes else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "cannot run C compiled programs. + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details" "$LINENO" 5; } fi fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 -$as_echo "$cross_compiling" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 +printf "%s\n" "$cross_compiling" >&6; } rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out ac_clean_files=$ac_clean_files_save -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 -$as_echo_n "checking for suffix of object files... " >&6; } -if ${ac_cv_objext+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 +printf %s "checking for suffix of object files... " >&6; } +if test ${ac_cv_objext+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; @@ -3672,11 +4607,12 @@ *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then : + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +then : for ac_file in conftest.o conftest.obj conftest.*; do test -f "$ac_file" || continue; case $ac_file in @@ -3685,31 +4621,32 @@ break;; esac done -else - $as_echo "$as_me: failed program was:" >&5 +else $as_nop + printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of object files: cannot compile See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest.$ac_cv_objext conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 -$as_echo "$ac_cv_objext" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 +printf "%s\n" "$ac_cv_objext" >&6; } OBJEXT=$ac_cv_objext ac_objext=$OBJEXT -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 -$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } -if ${ac_cv_c_compiler_gnu+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 +printf %s "checking whether the compiler supports GNU C... " >&6; } +if test ${ac_cv_c_compiler_gnu+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { #ifndef __GNUC__ choke me @@ -3719,29 +4656,33 @@ return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_compiler_gnu=yes -else +else $as_nop ac_compiler_gnu=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 -$as_echo "$ac_cv_c_compiler_gnu" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 +printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } +ac_compiler_gnu=$ac_cv_c_compiler_gnu + if test $ac_compiler_gnu = yes; then GCC=yes else GCC= fi -ac_test_CFLAGS=${CFLAGS+set} +ac_test_CFLAGS=${CFLAGS+y} ac_save_CFLAGS=$CFLAGS -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 -$as_echo_n "checking whether $CC accepts -g... " >&6; } -if ${ac_cv_prog_cc_g+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 +printf %s "checking whether $CC accepts -g... " >&6; } +if test ${ac_cv_prog_cc_g+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no @@ -3750,57 +4691,60 @@ /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_prog_cc_g=yes -else +else $as_nop CFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : -else +else $as_nop ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_prog_cc_g=yes fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 -$as_echo "$ac_cv_prog_cc_g" >&6; } -if test "$ac_test_CFLAGS" = set; then +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 +printf "%s\n" "$ac_cv_prog_cc_g" >&6; } +if test $ac_test_CFLAGS; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then @@ -3815,94 +4759,144 @@ CFLAGS= fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 -$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } -if ${ac_cv_prog_cc_c89+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_cv_prog_cc_c89=no +ac_prog_cc_stdc=no +if test x$ac_prog_cc_stdc = xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 +printf %s "checking for $CC option to enable C11 features... " >&6; } +if test ${ac_cv_prog_cc_c11+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_cv_prog_cc_c11=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include -#include -struct stat; -/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ -struct buf { int x; }; -FILE * (*rcsopen) (struct buf *, struct stat *, int); -static char *e (p, i) - char **p; - int i; -{ - return p[i]; -} -static char *f (char * (*g) (char **, int), char **p, ...) -{ - char *s; - va_list v; - va_start (v,p); - s = g (p, va_arg (v,int)); - va_end (v); - return s; -} - -/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has - function prototypes and stuff, but not '\xHH' hex character constants. - These don't provoke an error unfortunately, instead are silently treated - as 'x'. The following induces an error, until -std is added to get - proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an - array size at least. It's necessary to write '\x00'==0 to get something - that's true only with -std. */ -int osf4_cc_array ['\x00' == 0 ? 1 : -1]; +$ac_c_conftest_c11_program +_ACEOF +for ac_arg in '' -std=gnu11 +do + CC="$ac_save_CC $ac_arg" + if ac_fn_c_try_compile "$LINENO" +then : + ac_cv_prog_cc_c11=$ac_arg +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam + test "x$ac_cv_prog_cc_c11" != "xno" && break +done +rm -f conftest.$ac_ext +CC=$ac_save_CC +fi -/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters - inside strings and character constants. */ -#define FOO(x) 'x' -int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; +if test "x$ac_cv_prog_cc_c11" = xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 +printf "%s\n" "unsupported" >&6; } +else $as_nop + if test "x$ac_cv_prog_cc_c11" = x +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 +printf "%s\n" "none needed" >&6; } +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 +printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } + CC="$CC $ac_cv_prog_cc_c11" +fi + ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 + ac_prog_cc_stdc=c11 +fi +fi +if test x$ac_prog_cc_stdc = xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 +printf %s "checking for $CC option to enable C99 features... " >&6; } +if test ${ac_cv_prog_cc_c99+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_cv_prog_cc_c99=no +ac_save_CC=$CC +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_c_conftest_c99_program +_ACEOF +for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= +do + CC="$ac_save_CC $ac_arg" + if ac_fn_c_try_compile "$LINENO" +then : + ac_cv_prog_cc_c99=$ac_arg +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam + test "x$ac_cv_prog_cc_c99" != "xno" && break +done +rm -f conftest.$ac_ext +CC=$ac_save_CC +fi -int test (int i, double x); -struct s1 {int (*f) (int a);}; -struct s2 {int (*f) (double a);}; -int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); -int argc; -char **argv; -int -main () -{ -return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; - ; - return 0; -} +if test "x$ac_cv_prog_cc_c99" = xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 +printf "%s\n" "unsupported" >&6; } +else $as_nop + if test "x$ac_cv_prog_cc_c99" = x +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 +printf "%s\n" "none needed" >&6; } +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 +printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } + CC="$CC $ac_cv_prog_cc_c99" +fi + ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 + ac_prog_cc_stdc=c99 +fi +fi +if test x$ac_prog_cc_stdc = xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 +printf %s "checking for $CC option to enable C89 features... " >&6; } +if test ${ac_cv_prog_cc_c89+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_cv_prog_cc_c89=no +ac_save_CC=$CC +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_c_conftest_c89_program _ACEOF -for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ - -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" - if ac_fn_c_try_compile "$LINENO"; then : + if ac_fn_c_try_compile "$LINENO" +then : ac_cv_prog_cc_c89=$ac_arg fi -rm -f core conftest.err conftest.$ac_objext +rm -f core conftest.err conftest.$ac_objext conftest.beam test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC - fi -# AC_CACHE_VAL -case "x$ac_cv_prog_cc_c89" in - x) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 -$as_echo "none needed" >&6; } ;; - xno) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 -$as_echo "unsupported" >&6; } ;; - *) - CC="$CC $ac_cv_prog_cc_c89" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 -$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; -esac -if test "x$ac_cv_prog_cc_c89" != xno; then : +if test "x$ac_cv_prog_cc_c89" = xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 +printf "%s\n" "unsupported" >&6; } +else $as_nop + if test "x$ac_cv_prog_cc_c89" = x +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 +printf "%s\n" "none needed" >&6; } +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 +printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } + CC="$CC $ac_cv_prog_cc_c89" +fi + ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 + ac_prog_cc_stdc=c89 +fi fi ac_ext=c @@ -3911,21 +4905,23 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu -ac_ext=c + + ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 -$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } -if ${am_cv_prog_cc_c_o+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 +printf %s "checking whether $CC understands -c and -o together... " >&6; } +if test ${am_cv_prog_cc_c_o+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; @@ -3953,8 +4949,8 @@ rm -f core conftest* unset am_i fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 -$as_echo "$am_cv_prog_cc_c_o" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 +printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } if test "$am_cv_prog_cc_c_o" != yes; then # Losing compiler, so override with the script. # FIXME: It is wrong to rewrite CC. @@ -3973,8 +4969,8 @@ ac_config_commands="$ac_config_commands depfiles" -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 -$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 +printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } cat > confinc.mk << 'END' am__doit: @echo this is the am__doit target >confinc.out @@ -4010,11 +5006,12 @@ fi done rm -f confinc.* confmf.* -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 -$as_echo "${_am_result}" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 +printf "%s\n" "${_am_result}" >&6; } # Check whether --enable-dependency-tracking was given. -if test "${enable_dependency_tracking+set}" = set; then : +if test ${enable_dependency_tracking+y} +then : enableval=$enable_dependency_tracking; fi @@ -4035,11 +5032,12 @@ depcc="$CC" am_compiler_list= -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 -$as_echo_n "checking dependency style of $depcc... " >&6; } -if ${am_cv_CC_dependencies_compiler_type+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 +printf %s "checking dependency style of $depcc... " >&6; } +if test ${am_cv_CC_dependencies_compiler_type+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For @@ -4146,8 +5144,8 @@ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 -$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 +printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type if @@ -4161,6 +5159,12 @@ fi + + + + + + ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -4171,15 +5175,16 @@ CXX=$CCC else if test -n "$ac_tool_prefix"; then - for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++ do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_CXX+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_CXX+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else @@ -4187,11 +5192,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -4202,11 +5211,11 @@ fi CXX=$ac_cv_prog_CXX if test -n "$CXX"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 -$as_echo "$CXX" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 +printf "%s\n" "$CXX" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -4215,15 +5224,16 @@ fi if test -z "$CXX"; then ac_ct_CXX=$CXX - for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_CXX+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_CXX+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$ac_ct_CXX"; then ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. else @@ -4231,11 +5241,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CXX="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -4246,11 +5260,11 @@ fi ac_ct_CXX=$ac_cv_prog_ac_ct_CXX if test -n "$ac_ct_CXX"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 -$as_echo "$ac_ct_CXX" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 +printf "%s\n" "$ac_ct_CXX" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -4262,8 +5276,8 @@ else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CXX=$ac_ct_CXX @@ -4273,7 +5287,7 @@ fi fi # Provide some information about the compiler. -$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 +printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion; do @@ -4283,7 +5297,7 @@ *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then @@ -4293,20 +5307,21 @@ cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 -$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } -if ${ac_cv_cxx_compiler_gnu+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5 +printf %s "checking whether the compiler supports GNU C++... " >&6; } +if test ${ac_cv_cxx_compiler_gnu+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { #ifndef __GNUC__ choke me @@ -4316,29 +5331,33 @@ return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : ac_compiler_gnu=yes -else +else $as_nop ac_compiler_gnu=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_cv_cxx_compiler_gnu=$ac_compiler_gnu fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 -$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 +printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; } +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + if test $ac_compiler_gnu = yes; then GXX=yes else GXX= fi -ac_test_CXXFLAGS=${CXXFLAGS+set} +ac_test_CXXFLAGS=${CXXFLAGS+y} ac_save_CXXFLAGS=$CXXFLAGS -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 -$as_echo_n "checking whether $CXX accepts -g... " >&6; } -if ${ac_cv_prog_cxx_g+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 +printf %s "checking whether $CXX accepts -g... " >&6; } +if test ${ac_cv_prog_cxx_g+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_save_cxx_werror_flag=$ac_cxx_werror_flag ac_cxx_werror_flag=yes ac_cv_prog_cxx_g=no @@ -4347,57 +5366,60 @@ /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : ac_cv_prog_cxx_g=yes -else +else $as_nop CXXFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : -else +else $as_nop ac_cxx_werror_flag=$ac_save_cxx_werror_flag CXXFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : +if ac_fn_cxx_try_compile "$LINENO" +then : ac_cv_prog_cxx_g=yes fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_cxx_werror_flag=$ac_save_cxx_werror_flag fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 -$as_echo "$ac_cv_prog_cxx_g" >&6; } -if test "$ac_test_CXXFLAGS" = set; then +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 +printf "%s\n" "$ac_cv_prog_cxx_g" >&6; } +if test $ac_test_CXXFLAGS; then CXXFLAGS=$ac_save_CXXFLAGS elif test $ac_cv_prog_cxx_g = yes; then if test "$GXX" = yes; then @@ -4412,6 +5434,100 @@ CXXFLAGS= fi fi +ac_prog_cxx_stdcxx=no +if test x$ac_prog_cxx_stdcxx = xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5 +printf %s "checking for $CXX option to enable C++11 features... " >&6; } +if test ${ac_cv_prog_cxx_11+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_cv_prog_cxx_11=no +ac_save_CXX=$CXX +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_cxx_conftest_cxx11_program +_ACEOF +for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA +do + CXX="$ac_save_CXX $ac_arg" + if ac_fn_cxx_try_compile "$LINENO" +then : + ac_cv_prog_cxx_cxx11=$ac_arg +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam + test "x$ac_cv_prog_cxx_cxx11" != "xno" && break +done +rm -f conftest.$ac_ext +CXX=$ac_save_CXX +fi + +if test "x$ac_cv_prog_cxx_cxx11" = xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 +printf "%s\n" "unsupported" >&6; } +else $as_nop + if test "x$ac_cv_prog_cxx_cxx11" = x +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 +printf "%s\n" "none needed" >&6; } +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5 +printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; } + CXX="$CXX $ac_cv_prog_cxx_cxx11" +fi + ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11 + ac_prog_cxx_stdcxx=cxx11 +fi +fi +if test x$ac_prog_cxx_stdcxx = xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5 +printf %s "checking for $CXX option to enable C++98 features... " >&6; } +if test ${ac_cv_prog_cxx_98+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_cv_prog_cxx_98=no +ac_save_CXX=$CXX +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_cxx_conftest_cxx98_program +_ACEOF +for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA +do + CXX="$ac_save_CXX $ac_arg" + if ac_fn_cxx_try_compile "$LINENO" +then : + ac_cv_prog_cxx_cxx98=$ac_arg +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam + test "x$ac_cv_prog_cxx_cxx98" != "xno" && break +done +rm -f conftest.$ac_ext +CXX=$ac_save_CXX +fi + +if test "x$ac_cv_prog_cxx_cxx98" = xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 +printf "%s\n" "unsupported" >&6; } +else $as_nop + if test "x$ac_cv_prog_cxx_cxx98" = x +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 +printf "%s\n" "none needed" >&6; } +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5 +printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; } + CXX="$CXX $ac_cv_prog_cxx_cxx98" +fi + ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98 + ac_prog_cxx_stdcxx=cxx98 +fi +fi + ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -4420,11 +5536,12 @@ depcc="$CXX" am_compiler_list= -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 -$as_echo_n "checking dependency style of $depcc... " >&6; } -if ${am_cv_CXX_dependencies_compiler_type+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 +printf %s "checking dependency style of $depcc... " >&6; } +if test ${am_cv_CXX_dependencies_compiler_type+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For @@ -4531,8 +5648,8 @@ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 -$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 +printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; } CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type if @@ -4551,40 +5668,36 @@ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 -$as_echo_n "checking how to run the C preprocessor... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 +printf %s "checking how to run the C preprocessor... " >&6; } # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then - if ${ac_cv_prog_CPP+:} false; then : - $as_echo_n "(cached) " >&6 -else - # Double quotes because CPP needs to be expanded - for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" + if test ${ac_cv_prog_CPP+y} +then : + printf %s "(cached) " >&6 +else $as_nop + # Double quotes because $CC needs to be expanded + for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp do ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#ifdef __STDC__ -# include -#else -# include -#endif +#include Syntax error _ACEOF -if ac_fn_c_try_cpp "$LINENO"; then : +if ac_fn_c_try_cpp "$LINENO" +then : -else +else $as_nop # Broken: fails on valid input. continue fi @@ -4596,10 +5709,11 @@ /* end confdefs.h. */ #include _ACEOF -if ac_fn_c_try_cpp "$LINENO"; then : +if ac_fn_c_try_cpp "$LINENO" +then : # Broken: success on invalid input. continue -else +else $as_nop # Passes both tests. ac_preproc_ok=: break @@ -4609,7 +5723,8 @@ done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext -if $ac_preproc_ok; then : +if $ac_preproc_ok +then : break fi @@ -4621,29 +5736,24 @@ else ac_cv_prog_CPP=$CPP fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 -$as_echo "$CPP" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 +printf "%s\n" "$CPP" >&6; } ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#ifdef __STDC__ -# include -#else -# include -#endif +#include Syntax error _ACEOF -if ac_fn_c_try_cpp "$LINENO"; then : +if ac_fn_c_try_cpp "$LINENO" +then : -else +else $as_nop # Broken: fails on valid input. continue fi @@ -4655,10 +5765,11 @@ /* end confdefs.h. */ #include _ACEOF -if ac_fn_c_try_cpp "$LINENO"; then : +if ac_fn_c_try_cpp "$LINENO" +then : # Broken: success on invalid input. continue -else +else $as_nop # Passes both tests. ac_preproc_ok=: break @@ -4668,11 +5779,12 @@ done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext -if $ac_preproc_ok; then : +if $ac_preproc_ok +then : -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +else $as_nop + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details" "$LINENO" 5; } fi @@ -4685,8 +5797,8 @@ case `pwd` in *\ * | *\ *) - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 -$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 +printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; esac @@ -4706,28 +5818,32 @@ + ltmain=$ac_aux_dir/ltmain.sh -# Make sure we can run config.sub. -$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || - as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 -$as_echo_n "checking build system type... " >&6; } -if ${ac_cv_build+:} false; then : - $as_echo_n "(cached) " >&6 -else + + + # Make sure we can run config.sub. +$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || + as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 + +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 +printf %s "checking build system type... " >&6; } +if test ${ac_cv_build+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_build_alias=$build_alias test "x$ac_build_alias" = x && - ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` + ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` test "x$ac_build_alias" = x && as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 -ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || - as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 +ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || + as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 -$as_echo "$ac_cv_build" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 +printf "%s\n" "$ac_cv_build" >&6; } case $ac_cv_build in *-*-*) ;; *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; @@ -4746,21 +5862,22 @@ case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 -$as_echo_n "checking host system type... " >&6; } -if ${ac_cv_host+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 +printf %s "checking host system type... " >&6; } +if test ${ac_cv_host+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test "x$host_alias" = x; then ac_cv_host=$ac_cv_build else - ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || - as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 + ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || + as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 -$as_echo "$ac_cv_host" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 +printf "%s\n" "$ac_cv_host" >&6; } case $ac_cv_host in *-*-*) ;; *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; @@ -4800,8 +5917,8 @@ ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 -$as_echo_n "checking how to print strings... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 +printf %s "checking how to print strings... " >&6; } # Test print first, because it will be a builtin if present. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then @@ -4827,12 +5944,12 @@ } case $ECHO in - printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 -$as_echo "printf" >&6; } ;; - print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 -$as_echo "print -r" >&6; } ;; - *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 -$as_echo "cat" >&6; } ;; + printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 +printf "%s\n" "printf" >&6; } ;; + print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 +printf "%s\n" "print -r" >&6; } ;; + *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 +printf "%s\n" "cat" >&6; } ;; esac @@ -4848,11 +5965,12 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 -$as_echo_n "checking for a sed that does not truncate output... " >&6; } -if ${ac_cv_path_SED+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 +printf %s "checking for a sed that does not truncate output... " >&6; } +if test ${ac_cv_path_SED+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ for ac_i in 1 2 3 4 5 6 7; do ac_script="$ac_script$as_nl$ac_script" @@ -4866,10 +5984,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in sed gsed; do + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + for ac_prog in sed gsed + do for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" + ac_path_SED="$as_dir$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_SED" || continue # Check for GNU ac_path_SED and select it if it is found. # Check for GNU $ac_path_SED @@ -4878,13 +6001,13 @@ ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; *) ac_count=0 - $as_echo_n 0123456789 >"conftest.in" + printf %s 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" - $as_echo '' >> "conftest.nl" + printf "%s\n" '' >> "conftest.nl" "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val @@ -4912,8 +6035,8 @@ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 -$as_echo "$ac_cv_path_SED" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 +printf "%s\n" "$ac_cv_path_SED" >&6; } SED="$ac_cv_path_SED" rm -f conftest.sed @@ -4930,11 +6053,12 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 -$as_echo_n "checking for grep that handles long lines and -e... " >&6; } -if ${ac_cv_path_GREP+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 +printf %s "checking for grep that handles long lines and -e... " >&6; } +if test ${ac_cv_path_GREP+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -z "$GREP"; then ac_path_GREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST @@ -4942,10 +6066,15 @@ for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in grep ggrep; do + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + for ac_prog in grep ggrep + do for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" + ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_GREP" || continue # Check for GNU ac_path_GREP and select it if it is found. # Check for GNU $ac_path_GREP @@ -4954,13 +6083,13 @@ ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; *) ac_count=0 - $as_echo_n 0123456789 >"conftest.in" + printf %s 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" - $as_echo 'GREP' >> "conftest.nl" + printf "%s\n" 'GREP' >> "conftest.nl" "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val @@ -4988,16 +6117,17 @@ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 -$as_echo "$ac_cv_path_GREP" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 +printf "%s\n" "$ac_cv_path_GREP" >&6; } GREP="$ac_cv_path_GREP" -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 -$as_echo_n "checking for egrep... " >&6; } -if ${ac_cv_path_EGREP+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 +printf %s "checking for egrep... " >&6; } +if test ${ac_cv_path_EGREP+y} +then : + printf %s "(cached) " >&6 +else $as_nop if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 then ac_cv_path_EGREP="$GREP -E" else @@ -5008,10 +6138,15 @@ for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in egrep; do + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + for ac_prog in egrep + do for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" + ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_EGREP" || continue # Check for GNU ac_path_EGREP and select it if it is found. # Check for GNU $ac_path_EGREP @@ -5020,13 +6155,13 @@ ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; *) ac_count=0 - $as_echo_n 0123456789 >"conftest.in" + printf %s 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" - $as_echo 'EGREP' >> "conftest.nl" + printf "%s\n" 'EGREP' >> "conftest.nl" "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val @@ -5055,16 +6190,17 @@ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 -$as_echo "$ac_cv_path_EGREP" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 +printf "%s\n" "$ac_cv_path_EGREP" >&6; } EGREP="$ac_cv_path_EGREP" -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 -$as_echo_n "checking for fgrep... " >&6; } -if ${ac_cv_path_FGREP+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 +printf %s "checking for fgrep... " >&6; } +if test ${ac_cv_path_FGREP+y} +then : + printf %s "(cached) " >&6 +else $as_nop if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 then ac_cv_path_FGREP="$GREP -F" else @@ -5075,10 +6211,15 @@ for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in fgrep; do + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + for ac_prog in fgrep + do for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" + ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_FGREP" || continue # Check for GNU ac_path_FGREP and select it if it is found. # Check for GNU $ac_path_FGREP @@ -5087,13 +6228,13 @@ ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; *) ac_count=0 - $as_echo_n 0123456789 >"conftest.in" + printf %s 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" - $as_echo 'FGREP' >> "conftest.nl" + printf "%s\n" 'FGREP' >> "conftest.nl" "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val @@ -5122,8 +6263,8 @@ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 -$as_echo "$ac_cv_path_FGREP" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 +printf "%s\n" "$ac_cv_path_FGREP" >&6; } FGREP="$ac_cv_path_FGREP" @@ -5148,17 +6289,18 @@ # Check whether --with-gnu-ld was given. -if test "${with_gnu_ld+set}" = set; then : +if test ${with_gnu_ld+y} +then : withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes -else +else $as_nop with_gnu_ld=no fi ac_prog=ld if test yes = "$GCC"; then # Check if gcc -print-prog-name=ld gives a path. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 -$as_echo_n "checking for ld used by $CC... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 +printf %s "checking for ld used by $CC... " >&6; } case $host in *-*-mingw*) # gcc leaves a trailing carriage return, which upsets mingw @@ -5187,15 +6329,16 @@ ;; esac elif test yes = "$with_gnu_ld"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 -$as_echo_n "checking for GNU ld... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 +printf %s "checking for GNU ld... " >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 -$as_echo_n "checking for non-GNU ld... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 +printf %s "checking for non-GNU ld... " >&6; } fi -if ${lt_cv_path_LD+:} false; then : - $as_echo_n "(cached) " >&6 -else +if test ${lt_cv_path_LD+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -z "$LD"; then lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do @@ -5224,18 +6367,19 @@ LD=$lt_cv_path_LD if test -n "$LD"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 -$as_echo "$LD" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 +printf "%s\n" "$LD" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 -$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } -if ${lt_cv_prog_gnu_ld+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 +printf %s "checking if the linker ($LD) is GNU ld... " >&6; } +if test ${lt_cv_prog_gnu_ld+y} +then : + printf %s "(cached) " >&6 +else $as_nop # I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 &5 -$as_echo "$lt_cv_prog_gnu_ld" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 +printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } with_gnu_ld=$lt_cv_prog_gnu_ld @@ -5258,11 +6402,12 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 -$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } -if ${lt_cv_path_NM+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 +printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } +if test ${lt_cv_path_NM+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$NM"; then # Let the user override the test. lt_cv_path_NM=$NM @@ -5312,8 +6457,8 @@ : ${lt_cv_path_NM=no} fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 -$as_echo "$lt_cv_path_NM" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 +printf "%s\n" "$lt_cv_path_NM" >&6; } if test no != "$lt_cv_path_NM"; then NM=$lt_cv_path_NM else @@ -5326,11 +6471,12 @@ do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_DUMPBIN+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_DUMPBIN+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$DUMPBIN"; then ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. else @@ -5338,11 +6484,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -5353,11 +6503,11 @@ fi DUMPBIN=$ac_cv_prog_DUMPBIN if test -n "$DUMPBIN"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 -$as_echo "$DUMPBIN" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 +printf "%s\n" "$DUMPBIN" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -5370,11 +6520,12 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_DUMPBIN+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$ac_ct_DUMPBIN"; then ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. else @@ -5382,11 +6533,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -5397,11 +6552,11 @@ fi ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN if test -n "$ac_ct_DUMPBIN"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 -$as_echo "$ac_ct_DUMPBIN" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 +printf "%s\n" "$ac_ct_DUMPBIN" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -5413,8 +6568,8 @@ else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac DUMPBIN=$ac_ct_DUMPBIN @@ -5442,11 +6597,12 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 -$as_echo_n "checking the name lister ($NM) interface... " >&6; } -if ${lt_cv_nm_interface+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 +printf %s "checking the name lister ($NM) interface... " >&6; } +if test ${lt_cv_nm_interface+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_nm_interface="BSD nm" echo "int some_variable = 0;" > conftest.$ac_ext (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) @@ -5462,26 +6618,27 @@ fi rm -f conftest* fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 -$as_echo "$lt_cv_nm_interface" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 +printf "%s\n" "$lt_cv_nm_interface" >&6; } -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 -$as_echo_n "checking whether ln -s works... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 +printf %s "checking whether ln -s works... " >&6; } LN_S=$as_ln_s if test "$LN_S" = "ln -s"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 -$as_echo "no, using $LN_S" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 +printf "%s\n" "no, using $LN_S" >&6; } fi # find the maximum length of command line arguments -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 -$as_echo_n "checking the maximum length of command line arguments... " >&6; } -if ${lt_cv_sys_max_cmd_len+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 +printf %s "checking the maximum length of command line arguments... " >&6; } +if test ${lt_cv_sys_max_cmd_len+y} +then : + printf %s "(cached) " >&6 +else $as_nop i=0 teststring=ABCD @@ -5608,11 +6765,11 @@ fi if test -n "$lt_cv_sys_max_cmd_len"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 -$as_echo "$lt_cv_sys_max_cmd_len" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 +printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 -$as_echo "none" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 +printf "%s\n" "none" >&6; } fi max_cmd_len=$lt_cv_sys_max_cmd_len @@ -5656,11 +6813,12 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 -$as_echo_n "checking how to convert $build file names to $host format... " >&6; } -if ${lt_cv_to_host_file_cmd+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 +printf %s "checking how to convert $build file names to $host format... " >&6; } +if test ${lt_cv_to_host_file_cmd+y} +then : + printf %s "(cached) " >&6 +else $as_nop case $host in *-*-mingw* ) case $build in @@ -5696,18 +6854,19 @@ fi to_host_file_cmd=$lt_cv_to_host_file_cmd -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 -$as_echo "$lt_cv_to_host_file_cmd" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 +printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 -$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } -if ${lt_cv_to_tool_file_cmd+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 +printf %s "checking how to convert $build file names to toolchain format... " >&6; } +if test ${lt_cv_to_tool_file_cmd+y} +then : + printf %s "(cached) " >&6 +else $as_nop #assume ordinary cross tools, or native build. lt_cv_to_tool_file_cmd=func_convert_file_noop case $host in @@ -5723,22 +6882,23 @@ fi to_tool_file_cmd=$lt_cv_to_tool_file_cmd -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 -$as_echo "$lt_cv_to_tool_file_cmd" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 +printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 -$as_echo_n "checking for $LD option to reload object files... " >&6; } -if ${lt_cv_ld_reload_flag+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 +printf %s "checking for $LD option to reload object files... " >&6; } +if test ${lt_cv_ld_reload_flag+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_ld_reload_flag='-r' fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 -$as_echo "$lt_cv_ld_reload_flag" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 +printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } reload_flag=$lt_cv_ld_reload_flag case $reload_flag in "" | " "*) ;; @@ -5771,11 +6931,12 @@ if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. set dummy ${ac_tool_prefix}objdump; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_OBJDUMP+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_OBJDUMP+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$OBJDUMP"; then ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. else @@ -5783,11 +6944,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -5798,11 +6963,11 @@ fi OBJDUMP=$ac_cv_prog_OBJDUMP if test -n "$OBJDUMP"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 -$as_echo "$OBJDUMP" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 +printf "%s\n" "$OBJDUMP" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -5811,11 +6976,12 @@ ac_ct_OBJDUMP=$OBJDUMP # Extract the first word of "objdump", so it can be a program name with args. set dummy objdump; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_OBJDUMP+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$ac_ct_OBJDUMP"; then ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. else @@ -5823,11 +6989,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_OBJDUMP="objdump" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -5838,11 +7008,11 @@ fi ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP if test -n "$ac_ct_OBJDUMP"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 -$as_echo "$ac_ct_OBJDUMP" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 +printf "%s\n" "$ac_ct_OBJDUMP" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi if test "x$ac_ct_OBJDUMP" = x; then @@ -5850,8 +7020,8 @@ else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac OBJDUMP=$ac_ct_OBJDUMP @@ -5870,11 +7040,12 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 -$as_echo_n "checking how to recognize dependent libraries... " >&6; } -if ${lt_cv_deplibs_check_method+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 +printf %s "checking how to recognize dependent libraries... " >&6; } +if test ${lt_cv_deplibs_check_method+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_file_magic_cmd='$MAGIC_CMD' lt_cv_file_magic_test_file= lt_cv_deplibs_check_method='unknown' @@ -6070,8 +7241,8 @@ esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 -$as_echo "$lt_cv_deplibs_check_method" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 +printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } file_magic_glob= want_nocaseglob=no @@ -6115,11 +7286,12 @@ if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. set dummy ${ac_tool_prefix}dlltool; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_DLLTOOL+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_DLLTOOL+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$DLLTOOL"; then ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. else @@ -6127,11 +7299,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -6142,11 +7318,11 @@ fi DLLTOOL=$ac_cv_prog_DLLTOOL if test -n "$DLLTOOL"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 -$as_echo "$DLLTOOL" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 +printf "%s\n" "$DLLTOOL" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -6155,11 +7331,12 @@ ac_ct_DLLTOOL=$DLLTOOL # Extract the first word of "dlltool", so it can be a program name with args. set dummy dlltool; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_DLLTOOL+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$ac_ct_DLLTOOL"; then ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. else @@ -6167,11 +7344,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_DLLTOOL="dlltool" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -6182,11 +7363,11 @@ fi ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL if test -n "$ac_ct_DLLTOOL"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 -$as_echo "$ac_ct_DLLTOOL" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 +printf "%s\n" "$ac_ct_DLLTOOL" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi if test "x$ac_ct_DLLTOOL" = x; then @@ -6194,8 +7375,8 @@ else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac DLLTOOL=$ac_ct_DLLTOOL @@ -6215,11 +7396,12 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 -$as_echo_n "checking how to associate runtime and link libraries... " >&6; } -if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 +printf %s "checking how to associate runtime and link libraries... " >&6; } +if test ${lt_cv_sharedlib_from_linklib_cmd+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_sharedlib_from_linklib_cmd='unknown' case $host_os in @@ -6242,8 +7424,8 @@ esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 -$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 +printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO @@ -6259,11 +7441,12 @@ do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_AR+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_AR+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$AR"; then ac_cv_prog_AR="$AR" # Let the user override the test. else @@ -6271,11 +7454,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_AR="$ac_tool_prefix$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -6286,11 +7473,11 @@ fi AR=$ac_cv_prog_AR if test -n "$AR"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 -$as_echo "$AR" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 +printf "%s\n" "$AR" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -6303,11 +7490,12 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_AR+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_AR+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$ac_ct_AR"; then ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. else @@ -6315,11 +7503,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_AR="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -6330,11 +7522,11 @@ fi ac_ct_AR=$ac_cv_prog_ac_ct_AR if test -n "$ac_ct_AR"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 -$as_echo "$ac_ct_AR" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 +printf "%s\n" "$ac_ct_AR" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -6346,8 +7538,8 @@ else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac AR=$ac_ct_AR @@ -6367,30 +7559,32 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 -$as_echo_n "checking for archiver @FILE support... " >&6; } -if ${lt_cv_ar_at_file+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 +printf %s "checking for archiver @FILE support... " >&6; } +if test ${lt_cv_ar_at_file+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_ar_at_file=no cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : echo conftest.$ac_objext > conftest.lst lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 (eval $lt_ar_try) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if test 0 -eq "$ac_status"; then # Ensure the archiver fails upon bogus file names. @@ -6398,7 +7592,7 @@ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 (eval $lt_ar_try) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if test 0 -ne "$ac_status"; then lt_cv_ar_at_file=@ @@ -6407,11 +7601,11 @@ rm -f conftest.* libconftest.a fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 -$as_echo "$lt_cv_ar_at_file" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 +printf "%s\n" "$lt_cv_ar_at_file" >&6; } if test no = "$lt_cv_ar_at_file"; then archiver_list_spec= @@ -6428,11 +7622,12 @@ if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_STRIP+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_STRIP+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else @@ -6440,11 +7635,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -6455,11 +7654,11 @@ fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 -$as_echo "$STRIP" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 +printf "%s\n" "$STRIP" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -6468,11 +7667,12 @@ ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_STRIP+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_STRIP+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else @@ -6480,11 +7680,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_STRIP="strip" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -6495,11 +7699,11 @@ fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 -$as_echo "$ac_ct_STRIP" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 +printf "%s\n" "$ac_ct_STRIP" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi if test "x$ac_ct_STRIP" = x; then @@ -6507,8 +7711,8 @@ else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP @@ -6527,11 +7731,12 @@ if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. set dummy ${ac_tool_prefix}ranlib; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_RANLIB+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_RANLIB+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$RANLIB"; then ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. else @@ -6539,11 +7744,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -6554,11 +7763,11 @@ fi RANLIB=$ac_cv_prog_RANLIB if test -n "$RANLIB"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 -$as_echo "$RANLIB" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 +printf "%s\n" "$RANLIB" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -6567,11 +7776,12 @@ ac_ct_RANLIB=$RANLIB # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_RANLIB+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$ac_ct_RANLIB"; then ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. else @@ -6579,11 +7789,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_RANLIB="ranlib" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -6594,11 +7808,11 @@ fi ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB if test -n "$ac_ct_RANLIB"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 -$as_echo "$ac_ct_RANLIB" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 +printf "%s\n" "$ac_ct_RANLIB" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi if test "x$ac_ct_RANLIB" = x; then @@ -6606,8 +7820,8 @@ else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac RANLIB=$ac_ct_RANLIB @@ -6696,11 +7910,12 @@ # Check for command to grab the raw symbol name followed by C symbol from nm. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 -$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } -if ${lt_cv_sys_global_symbol_pipe+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 +printf %s "checking command to parse $NM output from $compiler object... " >&6; } +if test ${lt_cv_sys_global_symbol_pipe+y} +then : + printf %s "(cached) " >&6 +else $as_nop # These are sane defaults that work on at least a few old systems. # [They come from Ultrix. What could be older than Ultrix?!! ;)] @@ -6852,14 +8067,14 @@ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then # Now try to grab the symbols. nlist=conftest.nm if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s "$nlist"; then # Try sorting and uniquifying the output. if sort "$nlist" | uniq > "$nlist"T; then @@ -6928,7 +8143,7 @@ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 (eval $ac_link) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s conftest$ac_exeext; then pipe_works=yes fi @@ -6963,11 +8178,11 @@ lt_cv_sys_global_symbol_to_cdecl= fi if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 -$as_echo "failed" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 +printf "%s\n" "failed" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 -$as_echo "ok" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 +printf "%s\n" "ok" >&6; } fi # Response file support. @@ -7013,13 +8228,14 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 -$as_echo_n "checking for sysroot... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 +printf %s "checking for sysroot... " >&6; } # Check whether --with-sysroot was given. -if test "${with_sysroot+set}" = set; then : +if test ${with_sysroot+y} +then : withval=$with_sysroot; -else +else $as_nop with_sysroot=no fi @@ -7037,24 +8253,25 @@ no|'') ;; #( *) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 -$as_echo "$with_sysroot" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 +printf "%s\n" "$with_sysroot" >&6; } as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 ;; esac - { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 -$as_echo "${lt_sysroot:-no}" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 +printf "%s\n" "${lt_sysroot:-no}" >&6; } -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 -$as_echo_n "checking for a working dd... " >&6; } -if ${ac_cv_path_lt_DD+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 +printf %s "checking for a working dd... " >&6; } +if test ${ac_cv_path_lt_DD+y} +then : + printf %s "(cached) " >&6 +else $as_nop printf 0123456789abcdef0123456789abcdef >conftest.i cat conftest.i conftest.i >conftest2.i : ${lt_DD:=$DD} @@ -7065,10 +8282,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in dd; do + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + for ac_prog in dd + do for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" + ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_lt_DD" || continue if "$ac_path_lt_DD" bs=32 count=1 conftest.out 2>/dev/null; then cmp -s conftest.i conftest.out \ @@ -7088,15 +8310,16 @@ rm -f conftest.i conftest2.i conftest.out fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 -$as_echo "$ac_cv_path_lt_DD" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 +printf "%s\n" "$ac_cv_path_lt_DD" >&6; } -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 -$as_echo_n "checking how to truncate binary pipes... " >&6; } -if ${lt_cv_truncate_bin+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 +printf %s "checking how to truncate binary pipes... " >&6; } +if test ${lt_cv_truncate_bin+y} +then : + printf %s "(cached) " >&6 +else $as_nop printf 0123456789abcdef0123456789abcdef >conftest.i cat conftest.i conftest.i >conftest2.i lt_cv_truncate_bin= @@ -7107,8 +8330,8 @@ rm -f conftest.i conftest2.i conftest.out test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 -$as_echo "$lt_cv_truncate_bin" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 +printf "%s\n" "$lt_cv_truncate_bin" >&6; } @@ -7131,7 +8354,8 @@ } # Check whether --enable-libtool-lock was given. -if test "${enable_libtool_lock+set}" = set; then : +if test ${enable_libtool_lock+y} +then : enableval=$enable_libtool_lock; fi @@ -7147,7 +8371,7 @@ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then case `/usr/bin/file conftest.$ac_objext` in *ELF-32*) @@ -7167,7 +8391,7 @@ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then if test yes = "$lt_cv_prog_gnu_ld"; then case `/usr/bin/file conftest.$ac_objext` in @@ -7205,7 +8429,7 @@ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then emul=elf case `/usr/bin/file conftest.$ac_objext` in @@ -7246,7 +8470,7 @@ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then case `/usr/bin/file conftest.o` in *32-bit*) @@ -7309,11 +8533,12 @@ # On SCO OpenServer 5, we need -belf to get full-featured binaries. SAVE_CFLAGS=$CFLAGS CFLAGS="$CFLAGS -belf" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 -$as_echo_n "checking whether the C compiler needs -belf... " >&6; } -if ${lt_cv_cc_needs_belf+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 +printf %s "checking whether the C compiler needs -belf... " >&6; } +if test ${lt_cv_cc_needs_belf+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -7324,19 +8549,20 @@ /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : lt_cv_cc_needs_belf=yes -else +else $as_nop lt_cv_cc_needs_belf=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' @@ -7345,8 +8571,8 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 -$as_echo "$lt_cv_cc_needs_belf" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 +printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } if test yes != "$lt_cv_cc_needs_belf"; then # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf CFLAGS=$SAVE_CFLAGS @@ -7359,7 +8585,7 @@ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then case `/usr/bin/file conftest.o` in *64-bit*) @@ -7396,11 +8622,12 @@ if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. set dummy ${ac_tool_prefix}mt; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_MANIFEST_TOOL+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$MANIFEST_TOOL"; then ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. else @@ -7408,11 +8635,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -7423,11 +8654,11 @@ fi MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL if test -n "$MANIFEST_TOOL"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 -$as_echo "$MANIFEST_TOOL" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 +printf "%s\n" "$MANIFEST_TOOL" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -7436,11 +8667,12 @@ ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL # Extract the first word of "mt", so it can be a program name with args. set dummy mt; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$ac_ct_MANIFEST_TOOL"; then ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. else @@ -7448,11 +8680,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -7463,11 +8699,11 @@ fi ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL if test -n "$ac_ct_MANIFEST_TOOL"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 -$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 +printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi if test "x$ac_ct_MANIFEST_TOOL" = x; then @@ -7475,8 +8711,8 @@ else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL @@ -7486,11 +8722,12 @@ fi test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 -$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } -if ${lt_cv_path_mainfest_tool+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 +printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } +if test ${lt_cv_path_mainfest_tool+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_path_mainfest_tool=no echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out @@ -7500,8 +8737,8 @@ fi rm -f conftest* fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 -$as_echo "$lt_cv_path_mainfest_tool" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 +printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } if test yes != "$lt_cv_path_mainfest_tool"; then MANIFEST_TOOL=: fi @@ -7516,11 +8753,12 @@ if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_DSYMUTIL+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_DSYMUTIL+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$DSYMUTIL"; then ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. else @@ -7528,11 +8766,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -7543,11 +8785,11 @@ fi DSYMUTIL=$ac_cv_prog_DSYMUTIL if test -n "$DSYMUTIL"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 -$as_echo "$DSYMUTIL" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 +printf "%s\n" "$DSYMUTIL" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -7556,11 +8798,12 @@ ac_ct_DSYMUTIL=$DSYMUTIL # Extract the first word of "dsymutil", so it can be a program name with args. set dummy dsymutil; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$ac_ct_DSYMUTIL"; then ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. else @@ -7568,11 +8811,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -7583,11 +8830,11 @@ fi ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL if test -n "$ac_ct_DSYMUTIL"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 -$as_echo "$ac_ct_DSYMUTIL" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 +printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi if test "x$ac_ct_DSYMUTIL" = x; then @@ -7595,8 +8842,8 @@ else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac DSYMUTIL=$ac_ct_DSYMUTIL @@ -7608,11 +8855,12 @@ if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. set dummy ${ac_tool_prefix}nmedit; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_NMEDIT+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_NMEDIT+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$NMEDIT"; then ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. else @@ -7620,11 +8868,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -7635,11 +8887,11 @@ fi NMEDIT=$ac_cv_prog_NMEDIT if test -n "$NMEDIT"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 -$as_echo "$NMEDIT" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 +printf "%s\n" "$NMEDIT" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -7648,11 +8900,12 @@ ac_ct_NMEDIT=$NMEDIT # Extract the first word of "nmedit", so it can be a program name with args. set dummy nmedit; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_NMEDIT+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$ac_ct_NMEDIT"; then ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. else @@ -7660,11 +8913,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_NMEDIT="nmedit" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -7675,11 +8932,11 @@ fi ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT if test -n "$ac_ct_NMEDIT"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 -$as_echo "$ac_ct_NMEDIT" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 +printf "%s\n" "$ac_ct_NMEDIT" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi if test "x$ac_ct_NMEDIT" = x; then @@ -7687,8 +8944,8 @@ else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac NMEDIT=$ac_ct_NMEDIT @@ -7700,11 +8957,12 @@ if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. set dummy ${ac_tool_prefix}lipo; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_LIPO+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_LIPO+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$LIPO"; then ac_cv_prog_LIPO="$LIPO" # Let the user override the test. else @@ -7712,11 +8970,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_LIPO="${ac_tool_prefix}lipo" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -7727,11 +8989,11 @@ fi LIPO=$ac_cv_prog_LIPO if test -n "$LIPO"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 -$as_echo "$LIPO" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 +printf "%s\n" "$LIPO" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -7740,11 +9002,12 @@ ac_ct_LIPO=$LIPO # Extract the first word of "lipo", so it can be a program name with args. set dummy lipo; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_LIPO+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_LIPO+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$ac_ct_LIPO"; then ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. else @@ -7752,11 +9015,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_LIPO="lipo" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -7767,11 +9034,11 @@ fi ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO if test -n "$ac_ct_LIPO"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 -$as_echo "$ac_ct_LIPO" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 +printf "%s\n" "$ac_ct_LIPO" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi if test "x$ac_ct_LIPO" = x; then @@ -7779,8 +9046,8 @@ else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac LIPO=$ac_ct_LIPO @@ -7792,11 +9059,12 @@ if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. set dummy ${ac_tool_prefix}otool; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_OTOOL+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_OTOOL+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$OTOOL"; then ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. else @@ -7804,11 +9072,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_OTOOL="${ac_tool_prefix}otool" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -7819,11 +9091,11 @@ fi OTOOL=$ac_cv_prog_OTOOL if test -n "$OTOOL"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 -$as_echo "$OTOOL" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 +printf "%s\n" "$OTOOL" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -7832,11 +9104,12 @@ ac_ct_OTOOL=$OTOOL # Extract the first word of "otool", so it can be a program name with args. set dummy otool; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_OTOOL+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$ac_ct_OTOOL"; then ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. else @@ -7844,11 +9117,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_OTOOL="otool" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -7859,11 +9136,11 @@ fi ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL if test -n "$ac_ct_OTOOL"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 -$as_echo "$ac_ct_OTOOL" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 +printf "%s\n" "$ac_ct_OTOOL" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi if test "x$ac_ct_OTOOL" = x; then @@ -7871,8 +9148,8 @@ else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac OTOOL=$ac_ct_OTOOL @@ -7884,11 +9161,12 @@ if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. set dummy ${ac_tool_prefix}otool64; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_OTOOL64+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_OTOOL64+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$OTOOL64"; then ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. else @@ -7896,11 +9174,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -7911,11 +9193,11 @@ fi OTOOL64=$ac_cv_prog_OTOOL64 if test -n "$OTOOL64"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 -$as_echo "$OTOOL64" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 +printf "%s\n" "$OTOOL64" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -7924,11 +9206,12 @@ ac_ct_OTOOL64=$OTOOL64 # Extract the first word of "otool64", so it can be a program name with args. set dummy otool64; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_OTOOL64+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$ac_ct_OTOOL64"; then ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. else @@ -7936,11 +9219,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_OTOOL64="otool64" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -7951,11 +9238,11 @@ fi ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 if test -n "$ac_ct_OTOOL64"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 -$as_echo "$ac_ct_OTOOL64" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 +printf "%s\n" "$ac_ct_OTOOL64" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi if test "x$ac_ct_OTOOL64" = x; then @@ -7963,8 +9250,8 @@ else case $cross_compiling:$ac_tool_warned in yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac OTOOL64=$ac_ct_OTOOL64 @@ -7999,11 +9286,12 @@ - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 -$as_echo_n "checking for -single_module linker flag... " >&6; } -if ${lt_cv_apple_cc_single_mod+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 +printf %s "checking for -single_module linker flag... " >&6; } +if test ${lt_cv_apple_cc_single_mod+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_apple_cc_single_mod=no if test -z "$LT_MULTI_MODULE"; then # By default we will add the -single_module flag. You can override @@ -8032,14 +9320,15 @@ rm -f conftest.* fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 -$as_echo "$lt_cv_apple_cc_single_mod" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 +printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 -$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } -if ${lt_cv_ld_exported_symbols_list+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 +printf %s "checking for -exported_symbols_list linker flag... " >&6; } +if test ${lt_cv_ld_exported_symbols_list+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_ld_exported_symbols_list=no save_LDFLAGS=$LDFLAGS echo "_main" > conftest.sym @@ -8048,31 +9337,33 @@ /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : lt_cv_ld_exported_symbols_list=yes -else +else $as_nop lt_cv_ld_exported_symbols_list=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 -$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 +printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 -$as_echo_n "checking for -force_load linker flag... " >&6; } -if ${lt_cv_ld_force_load+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 +printf %s "checking for -force_load linker flag... " >&6; } +if test ${lt_cv_ld_force_load+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_ld_force_load=no cat > conftest.c << _LT_EOF int forced_loaded() { return 2;} @@ -8100,23 +9391,18 @@ rm -rf conftest.dSYM fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 -$as_echo "$lt_cv_ld_force_load" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 +printf "%s\n" "$lt_cv_ld_force_load" >&6; } case $host_os in rhapsody* | darwin1.[012]) _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; darwin1.*) _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; - darwin*) # darwin 5.x on - # if running on 10.5 or later, the deployment target defaults - # to the OS version, if on x86, and 10.4, the deployment - # target defaults to 10.4. Don't you love it? - case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in - 10.0,*86*-darwin8*|10.0,*-darwin[91]*) - _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; - 10.[012][,.]*) + darwin*) + case ${MACOSX_DEPLOYMENT_TARGET},$host in + 10.[012],*|,*powerpc*) _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; - 10.*) + *) _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; esac ;; @@ -8172,149 +9458,43 @@ esac } +ac_header= ac_cache= +for ac_item in $ac_header_c_list +do + if test $ac_cache; then + ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" + if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then + printf "%s\n" "#define $ac_item 1" >> confdefs.h + fi + ac_header= ac_cache= + elif test $ac_header; then + ac_cache=$ac_item + else + ac_header=$ac_item + fi +done -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 -$as_echo_n "checking for ANSI C header files... " >&6; } -if ${ac_cv_header_stdc+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -#include -#include -#include - -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_header_stdc=yes -else - ac_cv_header_stdc=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - -if test $ac_cv_header_stdc = yes; then - # SunOS 4.x string.h does not declare mem*, contrary to ANSI. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "memchr" >/dev/null 2>&1; then : - -else - ac_cv_header_stdc=no -fi -rm -f conftest* - -fi - -if test $ac_cv_header_stdc = yes; then - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "free" >/dev/null 2>&1; then : - -else - ac_cv_header_stdc=no -fi -rm -f conftest* -fi -if test $ac_cv_header_stdc = yes; then - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. - if test "$cross_compiling" = yes; then : - : -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -#include -#if ((' ' & 0x0FF) == 0x020) -# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') -# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) -#else -# define ISLOWER(c) \ - (('a' <= (c) && (c) <= 'i') \ - || ('j' <= (c) && (c) <= 'r') \ - || ('s' <= (c) && (c) <= 'z')) -# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) -#endif -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) -int -main () -{ - int i; - for (i = 0; i < 256; i++) - if (XOR (islower (i), ISLOWER (i)) - || toupper (i) != TOUPPER (i)) - return 2; - return 0; -} -_ACEOF -if ac_fn_c_try_run "$LINENO"; then : -else - ac_cv_header_stdc=no -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext -fi -fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 -$as_echo "$ac_cv_header_stdc" >&6; } -if test $ac_cv_header_stdc = yes; then -$as_echo "#define STDC_HEADERS 1" >>confdefs.h -fi +if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes +then : -# On IRIX 5.3, sys/types and inttypes.h are conflicting. -for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ - inttypes.h stdint.h unistd.h -do : - as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default -" -if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF +printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h fi - -done - - -for ac_header in dlfcn.h -do : - ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default +ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default " -if test "x$ac_cv_header_dlfcn_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_DLFCN_H 1 -_ACEOF +if test "x$ac_cv_header_dlfcn_h" = xyes +then : + printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h fi -done - @@ -8341,7 +9521,8 @@ # Check whether --enable-shared was given. -if test "${enable_shared+set}" = set; then : +if test ${enable_shared+y} +then : enableval=$enable_shared; p=${PACKAGE-default} case $enableval in yes) enable_shared=yes ;; @@ -8359,7 +9540,7 @@ IFS=$lt_save_ifs ;; esac -else +else $as_nop enable_shared=yes fi @@ -8372,7 +9553,8 @@ # Check whether --enable-static was given. -if test "${enable_static+set}" = set; then : +if test ${enable_static+y} +then : enableval=$enable_static; p=${PACKAGE-default} case $enableval in yes) enable_static=yes ;; @@ -8390,7 +9572,7 @@ IFS=$lt_save_ifs ;; esac -else +else $as_nop enable_static=yes fi @@ -8404,7 +9586,8 @@ # Check whether --with-pic was given. -if test "${with_pic+set}" = set; then : +if test ${with_pic+y} +then : withval=$with_pic; lt_p=${PACKAGE-default} case $withval in yes|no) pic_mode=$withval ;; @@ -8421,7 +9604,7 @@ IFS=$lt_save_ifs ;; esac -else +else $as_nop pic_mode=default fi @@ -8433,7 +9616,8 @@ # Check whether --enable-fast-install was given. -if test "${enable_fast_install+set}" = set; then : +if test ${enable_fast_install+y} +then : enableval=$enable_fast_install; p=${PACKAGE-default} case $enableval in yes) enable_fast_install=yes ;; @@ -8451,7 +9635,7 @@ IFS=$lt_save_ifs ;; esac -else +else $as_nop enable_fast_install=yes fi @@ -8465,11 +9649,12 @@ shared_archive_member_spec= case $host,$enable_shared in power*-*-aix[5-9]*,yes) - { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 -$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 +printf %s "checking which variant of shared library versioning to provide... " >&6; } # Check whether --with-aix-soname was given. -if test "${with_aix_soname+set}" = set; then : +if test ${with_aix_soname+y} +then : withval=$with_aix_soname; case $withval in aix|svr4|both) ;; @@ -8478,18 +9663,19 @@ ;; esac lt_cv_with_aix_soname=$with_aix_soname -else - if ${lt_cv_with_aix_soname+:} false; then : - $as_echo_n "(cached) " >&6 -else +else $as_nop + if test ${lt_cv_with_aix_soname+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_with_aix_soname=aix fi with_aix_soname=$lt_cv_with_aix_soname fi - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 -$as_echo "$with_aix_soname" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 +printf "%s\n" "$with_aix_soname" >&6; } if test aix != "$with_aix_soname"; then # For the AIX way of multilib, we name the shared archive member # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', @@ -8571,11 +9757,12 @@ setopt NO_GLOB_SUBST fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 -$as_echo_n "checking for objdir... " >&6; } -if ${lt_cv_objdir+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 +printf %s "checking for objdir... " >&6; } +if test ${lt_cv_objdir+y} +then : + printf %s "(cached) " >&6 +else $as_nop rm -f .libs 2>/dev/null mkdir .libs 2>/dev/null if test -d .libs; then @@ -8586,17 +9773,15 @@ fi rmdir .libs 2>/dev/null fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 -$as_echo "$lt_cv_objdir" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 +printf "%s\n" "$lt_cv_objdir" >&6; } objdir=$lt_cv_objdir -cat >>confdefs.h <<_ACEOF -#define LT_OBJDIR "$lt_cv_objdir/" -_ACEOF +printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h @@ -8642,11 +9827,12 @@ case $deplibs_check_method in file_magic*) if test "$file_magic_cmd" = '$MAGIC_CMD'; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 -$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } -if ${lt_cv_path_MAGIC_CMD+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 +printf %s "checking for ${ac_tool_prefix}file... " >&6; } +if test ${lt_cv_path_MAGIC_CMD+y} +then : + printf %s "(cached) " >&6 +else $as_nop case $MAGIC_CMD in [\\/*] | ?:[\\/]*) lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. @@ -8695,11 +9881,11 @@ MAGIC_CMD=$lt_cv_path_MAGIC_CMD if test -n "$MAGIC_CMD"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 -$as_echo "$MAGIC_CMD" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 +printf "%s\n" "$MAGIC_CMD" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -8708,11 +9894,12 @@ if test -z "$lt_cv_path_MAGIC_CMD"; then if test -n "$ac_tool_prefix"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 -$as_echo_n "checking for file... " >&6; } -if ${lt_cv_path_MAGIC_CMD+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 +printf %s "checking for file... " >&6; } +if test ${lt_cv_path_MAGIC_CMD+y} +then : + printf %s "(cached) " >&6 +else $as_nop case $MAGIC_CMD in [\\/*] | ?:[\\/]*) lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. @@ -8761,11 +9948,11 @@ MAGIC_CMD=$lt_cv_path_MAGIC_CMD if test -n "$MAGIC_CMD"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 -$as_echo "$MAGIC_CMD" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 +printf "%s\n" "$MAGIC_CMD" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -8850,11 +10037,12 @@ lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; esac - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 -$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } -if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 +printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } +if test ${lt_cv_prog_compiler_rtti_exceptions+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_prog_compiler_rtti_exceptions=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext @@ -8885,8 +10073,8 @@ $RM conftest* fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 -$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 +printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" @@ -9243,26 +10431,28 @@ ;; esac -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 -$as_echo_n "checking for $compiler option to produce PIC... " >&6; } -if ${lt_cv_prog_compiler_pic+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 +printf %s "checking for $compiler option to produce PIC... " >&6; } +if test ${lt_cv_prog_compiler_pic+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_prog_compiler_pic=$lt_prog_compiler_pic fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 -$as_echo "$lt_cv_prog_compiler_pic" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 +printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } lt_prog_compiler_pic=$lt_cv_prog_compiler_pic # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 -$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } -if ${lt_cv_prog_compiler_pic_works+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 +printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } +if test ${lt_cv_prog_compiler_pic_works+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_prog_compiler_pic_works=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext @@ -9293,8 +10483,8 @@ $RM conftest* fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 -$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 +printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } if test yes = "$lt_cv_prog_compiler_pic_works"; then case $lt_prog_compiler_pic in @@ -9322,11 +10512,12 @@ # Check to make sure the static flag actually works. # wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 -$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } -if ${lt_cv_prog_compiler_static_works+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 +printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } +if test ${lt_cv_prog_compiler_static_works+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_prog_compiler_static_works=no save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS $lt_tmp_static_flag" @@ -9350,8 +10541,8 @@ LDFLAGS=$save_LDFLAGS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 -$as_echo "$lt_cv_prog_compiler_static_works" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 +printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } if test yes = "$lt_cv_prog_compiler_static_works"; then : @@ -9365,11 +10556,12 @@ - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 -$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } -if ${lt_cv_prog_compiler_c_o+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 +printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } +if test ${lt_cv_prog_compiler_c_o+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_prog_compiler_c_o=no $RM -r conftest 2>/dev/null mkdir conftest @@ -9412,19 +10604,20 @@ $RM conftest* fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 -$as_echo "$lt_cv_prog_compiler_c_o" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 +printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 -$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } -if ${lt_cv_prog_compiler_c_o+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 +printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } +if test ${lt_cv_prog_compiler_c_o+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_prog_compiler_c_o=no $RM -r conftest 2>/dev/null mkdir conftest @@ -9467,8 +10660,8 @@ $RM conftest* fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 -$as_echo "$lt_cv_prog_compiler_c_o" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 +printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } @@ -9476,19 +10669,19 @@ hard_links=nottested if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then # do not overwrite the value of need_locks provided by the user - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 -$as_echo_n "checking if we can lock with hard links... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 +printf %s "checking if we can lock with hard links... " >&6; } hard_links=yes $RM conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 -$as_echo "$hard_links" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 +printf "%s\n" "$hard_links" >&6; } if test no = "$hard_links"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 -$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 +printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} need_locks=warn fi else @@ -9500,8 +10693,8 @@ - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 -$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 +printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } runpath_var= allow_undefined_flag= @@ -10056,21 +11249,23 @@ if test set = "${lt_cv_aix_libpath+set}"; then aix_libpath=$lt_cv_aix_libpath else - if ${lt_cv_aix_libpath_+:} false; then : - $as_echo_n "(cached) " >&6 -else + if test ${lt_cv_aix_libpath_+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : lt_aix_libpath_sed=' /Import File Strings/,/^$/ { @@ -10085,7 +11280,7 @@ lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext if test -z "$lt_cv_aix_libpath_"; then lt_cv_aix_libpath_=/usr/lib:/lib @@ -10109,21 +11304,23 @@ if test set = "${lt_cv_aix_libpath+set}"; then aix_libpath=$lt_cv_aix_libpath else - if ${lt_cv_aix_libpath_+:} false; then : - $as_echo_n "(cached) " >&6 -else + if test ${lt_cv_aix_libpath_+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : lt_aix_libpath_sed=' /Import File Strings/,/^$/ { @@ -10138,7 +11335,7 @@ lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext if test -z "$lt_cv_aix_libpath_"; then lt_cv_aix_libpath_=/usr/lib:/lib @@ -10389,11 +11586,12 @@ # Older versions of the 11.00 compiler do not understand -b yet # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 -$as_echo_n "checking if $CC understands -b... " >&6; } -if ${lt_cv_prog_compiler__b+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 +printf %s "checking if $CC understands -b... " >&6; } +if test ${lt_cv_prog_compiler__b+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_prog_compiler__b=no save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS -b" @@ -10417,8 +11615,8 @@ LDFLAGS=$save_LDFLAGS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 -$as_echo "$lt_cv_prog_compiler__b" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 +printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } if test yes = "$lt_cv_prog_compiler__b"; then archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' @@ -10458,28 +11656,30 @@ # work, assume that -exports_file does not work either and # implicitly export all symbols. # This should be the same for all languages, so no per-tag cache variable. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 -$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } -if ${lt_cv_irix_exported_symbol+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 +printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } +if test ${lt_cv_irix_exported_symbol+y} +then : + printf %s "(cached) " >&6 +else $as_nop save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int foo (void) { return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : lt_cv_irix_exported_symbol=yes -else +else $as_nop lt_cv_irix_exported_symbol=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 -$as_echo "$lt_cv_irix_exported_symbol" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 +printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } if test yes = "$lt_cv_irix_exported_symbol"; then archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' fi @@ -10759,8 +11959,8 @@ fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 -$as_echo "$ld_shlibs" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 +printf "%s\n" "$ld_shlibs" >&6; } test no = "$ld_shlibs" && can_build_shared=no with_gnu_ld=$with_gnu_ld @@ -10796,18 +11996,19 @@ # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 -$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } -if ${lt_cv_archive_cmds_need_lc+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 +printf %s "checking whether -lc should be explicitly linked in... " >&6; } +if test ${lt_cv_archive_cmds_need_lc+y} +then : + printf %s "(cached) " >&6 +else $as_nop $RM conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } 2>conftest.err; then soname=conftest lib=conftest @@ -10825,7 +12026,7 @@ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } then lt_cv_archive_cmds_need_lc=no @@ -10839,8 +12040,8 @@ $RM conftest* fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 -$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 +printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc ;; esac @@ -10999,8 +12200,8 @@ - { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 -$as_echo_n "checking dynamic linker characteristics... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 +printf %s "checking dynamic linker characteristics... " >&6; } if test yes = "$GCC"; then case $host_os in @@ -11561,9 +12762,10 @@ shlibpath_overrides_runpath=no # Some binutils ld are patched to set DT_RUNPATH - if ${lt_cv_shlibpath_overrides_runpath+:} false; then : - $as_echo_n "(cached) " >&6 -else + if test ${lt_cv_shlibpath_overrides_runpath+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_shlibpath_overrides_runpath=no save_LDFLAGS=$LDFLAGS save_libdir=$libdir @@ -11573,19 +12775,21 @@ /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : +if ac_fn_c_try_link "$LINENO" +then : + if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null +then : lt_cv_shlibpath_overrides_runpath=yes fi fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS libdir=$save_libdir @@ -11817,8 +13021,8 @@ dynamic_linker=no ;; esac -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 -$as_echo "$dynamic_linker" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 +printf "%s\n" "$dynamic_linker" >&6; } test no = "$dynamic_linker" && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" @@ -11939,8 +13143,8 @@ - { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 -$as_echo_n "checking how to hardcode library paths into programs... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 +printf %s "checking how to hardcode library paths into programs... " >&6; } hardcode_action= if test -n "$hardcode_libdir_flag_spec" || test -n "$runpath_var" || @@ -11964,8 +13168,8 @@ # directories. hardcode_action=unsupported fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 -$as_echo "$hardcode_action" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 +printf "%s\n" "$hardcode_action" >&6; } if test relink = "$hardcode_action" || test yes = "$inherit_rpath"; then @@ -12009,11 +13213,12 @@ darwin*) # if libdl is installed we need to link against it - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 -$as_echo_n "checking for dlopen in -ldl... " >&6; } -if ${ac_cv_lib_dl_dlopen+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 +printf %s "checking for dlopen in -ldl... " >&6; } +if test ${ac_cv_lib_dl_dlopen+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -12022,32 +13227,31 @@ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif char dlopen (); int -main () +main (void) { return dlopen (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_dl_dlopen=yes -else +else $as_nop ac_cv_lib_dl_dlopen=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 -$as_echo "$ac_cv_lib_dl_dlopen" >&6; } -if test "x$ac_cv_lib_dl_dlopen" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 +printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } +if test "x$ac_cv_lib_dl_dlopen" = xyes +then : lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl -else +else $as_nop lt_cv_dlopen=dyld lt_cv_dlopen_libs= @@ -12067,14 +13271,16 @@ *) ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" -if test "x$ac_cv_func_shl_load" = xyes; then : +if test "x$ac_cv_func_shl_load" = xyes +then : lt_cv_dlopen=shl_load -else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 -$as_echo_n "checking for shl_load in -ldld... " >&6; } -if ${ac_cv_lib_dld_shl_load+:} false; then : - $as_echo_n "(cached) " >&6 -else +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 +printf %s "checking for shl_load in -ldld... " >&6; } +if test ${ac_cv_lib_dld_shl_load+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -12083,41 +13289,42 @@ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif char shl_load (); int -main () +main (void) { return shl_load (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_dld_shl_load=yes -else +else $as_nop ac_cv_lib_dld_shl_load=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 -$as_echo "$ac_cv_lib_dld_shl_load" >&6; } -if test "x$ac_cv_lib_dld_shl_load" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 +printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } +if test "x$ac_cv_lib_dld_shl_load" = xyes +then : lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld -else +else $as_nop ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" -if test "x$ac_cv_func_dlopen" = xyes; then : +if test "x$ac_cv_func_dlopen" = xyes +then : lt_cv_dlopen=dlopen -else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 -$as_echo_n "checking for dlopen in -ldl... " >&6; } -if ${ac_cv_lib_dl_dlopen+:} false; then : - $as_echo_n "(cached) " >&6 -else +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 +printf %s "checking for dlopen in -ldl... " >&6; } +if test ${ac_cv_lib_dl_dlopen+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -12126,37 +13333,37 @@ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif char dlopen (); int -main () +main (void) { return dlopen (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_dl_dlopen=yes -else +else $as_nop ac_cv_lib_dl_dlopen=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 -$as_echo "$ac_cv_lib_dl_dlopen" >&6; } -if test "x$ac_cv_lib_dl_dlopen" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 +printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } +if test "x$ac_cv_lib_dl_dlopen" = xyes +then : lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl -else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 -$as_echo_n "checking for dlopen in -lsvld... " >&6; } -if ${ac_cv_lib_svld_dlopen+:} false; then : - $as_echo_n "(cached) " >&6 -else +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 +printf %s "checking for dlopen in -lsvld... " >&6; } +if test ${ac_cv_lib_svld_dlopen+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lsvld $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -12165,37 +13372,37 @@ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif char dlopen (); int -main () +main (void) { return dlopen (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_svld_dlopen=yes -else +else $as_nop ac_cv_lib_svld_dlopen=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 -$as_echo "$ac_cv_lib_svld_dlopen" >&6; } -if test "x$ac_cv_lib_svld_dlopen" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 +printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } +if test "x$ac_cv_lib_svld_dlopen" = xyes +then : lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld -else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 -$as_echo_n "checking for dld_link in -ldld... " >&6; } -if ${ac_cv_lib_dld_dld_link+:} false; then : - $as_echo_n "(cached) " >&6 -else +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 +printf %s "checking for dld_link in -ldld... " >&6; } +if test ${ac_cv_lib_dld_dld_link+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -12204,30 +13411,29 @@ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ -#ifdef __cplusplus -extern "C" -#endif char dld_link (); int -main () +main (void) { return dld_link (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_dld_dld_link=yes -else +else $as_nop ac_cv_lib_dld_dld_link=no fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 -$as_echo "$ac_cv_lib_dld_dld_link" >&6; } -if test "x$ac_cv_lib_dld_dld_link" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 +printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } +if test "x$ac_cv_lib_dld_dld_link" = xyes +then : lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld fi @@ -12266,11 +13472,12 @@ save_LIBS=$LIBS LIBS="$lt_cv_dlopen_libs $LIBS" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 -$as_echo_n "checking whether a program can dlopen itself... " >&6; } -if ${lt_cv_dlopen_self+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 +printf %s "checking whether a program can dlopen itself... " >&6; } +if test ${lt_cv_dlopen_self+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test yes = "$cross_compiling"; then : lt_cv_dlopen_self=cross else @@ -12349,7 +13556,7 @@ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 (eval $ac_link) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then (./conftest; exit; ) >&5 2>/dev/null lt_status=$? @@ -12367,16 +13574,17 @@ fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 -$as_echo "$lt_cv_dlopen_self" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 +printf "%s\n" "$lt_cv_dlopen_self" >&6; } if test yes = "$lt_cv_dlopen_self"; then wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 -$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } -if ${lt_cv_dlopen_self_static+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 +printf %s "checking whether a statically linked program can dlopen itself... " >&6; } +if test ${lt_cv_dlopen_self_static+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test yes = "$cross_compiling"; then : lt_cv_dlopen_self_static=cross else @@ -12455,7 +13663,7 @@ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 (eval $ac_link) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then (./conftest; exit; ) >&5 2>/dev/null lt_status=$? @@ -12473,8 +13681,8 @@ fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 -$as_echo "$lt_cv_dlopen_self_static" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 +printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } fi CPPFLAGS=$save_CPPFLAGS @@ -12512,13 +13720,13 @@ striplib= old_striplib= -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 -$as_echo_n "checking whether stripping libraries is possible... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 +printf %s "checking whether stripping libraries is possible... " >&6; } if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" test -z "$striplib" && striplib="$STRIP --strip-unneeded" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } else # FIXME - insert some real tests, host_os isn't really good enough case $host_os in @@ -12526,16 +13734,16 @@ if test -n "$STRIP"; then striplib="$STRIP -x" old_striplib="$STRIP -S" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi ;; *) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } ;; esac fi @@ -12552,13 +13760,13 @@ # Report what library types will actually be built - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 -$as_echo_n "checking if libtool supports shared libraries... " >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 -$as_echo "$can_build_shared" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 +printf %s "checking if libtool supports shared libraries... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 +printf "%s\n" "$can_build_shared" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 -$as_echo_n "checking whether to build shared libraries... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 +printf %s "checking whether to build shared libraries... " >&6; } test no = "$can_build_shared" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and @@ -12582,15 +13790,15 @@ fi ;; esac - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 -$as_echo "$enable_shared" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 +printf "%s\n" "$enable_shared" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 -$as_echo_n "checking whether to build static libraries... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 +printf %s "checking whether to build static libraries... " >&6; } # Make sure either enable_shared or enable_static is yes. test yes = "$enable_shared" || enable_static=yes - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 -$as_echo "$enable_static" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 +printf "%s\n" "$enable_static" >&6; } @@ -12612,36 +13820,32 @@ ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 -$as_echo_n "checking how to run the C++ preprocessor... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 +printf %s "checking how to run the C++ preprocessor... " >&6; } if test -z "$CXXCPP"; then - if ${ac_cv_prog_CXXCPP+:} false; then : - $as_echo_n "(cached) " >&6 -else - # Double quotes because CXXCPP needs to be expanded - for CXXCPP in "$CXX -E" "/lib/cpp" + if test ${ac_cv_prog_CXXCPP+y} +then : + printf %s "(cached) " >&6 +else $as_nop + # Double quotes because $CXX needs to be expanded + for CXXCPP in "$CXX -E" cpp /lib/cpp do ac_preproc_ok=false for ac_cxx_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#ifdef __STDC__ -# include -#else -# include -#endif +#include Syntax error _ACEOF -if ac_fn_cxx_try_cpp "$LINENO"; then : +if ac_fn_cxx_try_cpp "$LINENO" +then : -else +else $as_nop # Broken: fails on valid input. continue fi @@ -12653,10 +13857,11 @@ /* end confdefs.h. */ #include _ACEOF -if ac_fn_cxx_try_cpp "$LINENO"; then : +if ac_fn_cxx_try_cpp "$LINENO" +then : # Broken: success on invalid input. continue -else +else $as_nop # Passes both tests. ac_preproc_ok=: break @@ -12666,7 +13871,8 @@ done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext -if $ac_preproc_ok; then : +if $ac_preproc_ok +then : break fi @@ -12678,29 +13884,24 @@ else ac_cv_prog_CXXCPP=$CXXCPP fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 -$as_echo "$CXXCPP" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 +printf "%s\n" "$CXXCPP" >&6; } ac_preproc_ok=false for ac_cxx_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#ifdef __STDC__ -# include -#else -# include -#endif +#include Syntax error _ACEOF -if ac_fn_cxx_try_cpp "$LINENO"; then : +if ac_fn_cxx_try_cpp "$LINENO" +then : -else +else $as_nop # Broken: fails on valid input. continue fi @@ -12712,10 +13913,11 @@ /* end confdefs.h. */ #include _ACEOF -if ac_fn_cxx_try_cpp "$LINENO"; then : +if ac_fn_cxx_try_cpp "$LINENO" +then : # Broken: success on invalid input. continue -else +else $as_nop # Passes both tests. ac_preproc_ok=: break @@ -12725,11 +13927,12 @@ done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext -if $ac_preproc_ok; then : +if $ac_preproc_ok +then : -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +else $as_nop + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check See \`config.log' for more details" "$LINENO" 5; } fi @@ -12865,17 +14068,18 @@ # Check whether --with-gnu-ld was given. -if test "${with_gnu_ld+set}" = set; then : +if test ${with_gnu_ld+y} +then : withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes -else +else $as_nop with_gnu_ld=no fi ac_prog=ld if test yes = "$GCC"; then # Check if gcc -print-prog-name=ld gives a path. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 -$as_echo_n "checking for ld used by $CC... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 +printf %s "checking for ld used by $CC... " >&6; } case $host in *-*-mingw*) # gcc leaves a trailing carriage return, which upsets mingw @@ -12904,15 +14108,16 @@ ;; esac elif test yes = "$with_gnu_ld"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 -$as_echo_n "checking for GNU ld... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 +printf %s "checking for GNU ld... " >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 -$as_echo_n "checking for non-GNU ld... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 +printf %s "checking for non-GNU ld... " >&6; } fi -if ${lt_cv_path_LD+:} false; then : - $as_echo_n "(cached) " >&6 -else +if test ${lt_cv_path_LD+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -z "$LD"; then lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do @@ -12941,18 +14146,19 @@ LD=$lt_cv_path_LD if test -n "$LD"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 -$as_echo "$LD" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 +printf "%s\n" "$LD" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 -$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } -if ${lt_cv_prog_gnu_ld+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 +printf %s "checking if the linker ($LD) is GNU ld... " >&6; } +if test ${lt_cv_prog_gnu_ld+y} +then : + printf %s "(cached) " >&6 +else $as_nop # I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 &5 -$as_echo "$lt_cv_prog_gnu_ld" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 +printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } with_gnu_ld=$lt_cv_prog_gnu_ld @@ -13018,8 +14224,8 @@ fi # PORTME: fill in a description of your system's C++ link characteristics - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 -$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 +printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } ld_shlibs_CXX=yes case $host_os in aix3*) @@ -13157,21 +14363,23 @@ if test set = "${lt_cv_aix_libpath+set}"; then aix_libpath=$lt_cv_aix_libpath else - if ${lt_cv_aix_libpath__CXX+:} false; then : - $as_echo_n "(cached) " >&6 -else + if test ${lt_cv_aix_libpath__CXX+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_cxx_try_link "$LINENO"; then : +if ac_fn_cxx_try_link "$LINENO" +then : lt_aix_libpath_sed=' /Import File Strings/,/^$/ { @@ -13186,7 +14394,7 @@ lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext if test -z "$lt_cv_aix_libpath__CXX"; then lt_cv_aix_libpath__CXX=/usr/lib:/lib @@ -13211,21 +14419,23 @@ if test set = "${lt_cv_aix_libpath+set}"; then aix_libpath=$lt_cv_aix_libpath else - if ${lt_cv_aix_libpath__CXX+:} false; then : - $as_echo_n "(cached) " >&6 -else + if test ${lt_cv_aix_libpath__CXX+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_cxx_try_link "$LINENO"; then : +if ac_fn_cxx_try_link "$LINENO" +then : lt_aix_libpath_sed=' /Import File Strings/,/^$/ { @@ -13240,7 +14450,7 @@ lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext if test -z "$lt_cv_aix_libpath__CXX"; then lt_cv_aix_libpath__CXX=/usr/lib:/lib @@ -14091,8 +15301,8 @@ ;; esac - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 -$as_echo "$ld_shlibs_CXX" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 +printf "%s\n" "$ld_shlibs_CXX" >&6; } test no = "$ld_shlibs_CXX" && can_build_shared=no GCC_CXX=$GXX @@ -14130,7 +15340,7 @@ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then # Parse the compiler output and extract the necessary # objects, libraries and library flags. @@ -14611,26 +15821,28 @@ ;; esac -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 -$as_echo_n "checking for $compiler option to produce PIC... " >&6; } -if ${lt_cv_prog_compiler_pic_CXX+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 +printf %s "checking for $compiler option to produce PIC... " >&6; } +if test ${lt_cv_prog_compiler_pic_CXX+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 -$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 +printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; } lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic_CXX"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 -$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } -if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 +printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } +if test ${lt_cv_prog_compiler_pic_works_CXX+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_prog_compiler_pic_works_CXX=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext @@ -14661,8 +15873,8 @@ $RM conftest* fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 -$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 +printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; } if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then case $lt_prog_compiler_pic_CXX in @@ -14684,11 +15896,12 @@ # Check to make sure the static flag actually works. # wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 -$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } -if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 +printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } +if test ${lt_cv_prog_compiler_static_works_CXX+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_prog_compiler_static_works_CXX=no save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS $lt_tmp_static_flag" @@ -14712,8 +15925,8 @@ LDFLAGS=$save_LDFLAGS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 -$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 +printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; } if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then : @@ -14724,11 +15937,12 @@ - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 -$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } -if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 +printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } +if test ${lt_cv_prog_compiler_c_o_CXX+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_prog_compiler_c_o_CXX=no $RM -r conftest 2>/dev/null mkdir conftest @@ -14771,16 +15985,17 @@ $RM conftest* fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 -$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 +printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 -$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } -if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 +printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } +if test ${lt_cv_prog_compiler_c_o_CXX+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_prog_compiler_c_o_CXX=no $RM -r conftest 2>/dev/null mkdir conftest @@ -14823,8 +16038,8 @@ $RM conftest* fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 -$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 +printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; } @@ -14832,19 +16047,19 @@ hard_links=nottested if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then # do not overwrite the value of need_locks provided by the user - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 -$as_echo_n "checking if we can lock with hard links... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 +printf %s "checking if we can lock with hard links... " >&6; } hard_links=yes $RM conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 -$as_echo "$hard_links" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 +printf "%s\n" "$hard_links" >&6; } if test no = "$hard_links"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 -$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 +printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} need_locks=warn fi else @@ -14853,8 +16068,8 @@ - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 -$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 +printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' @@ -14893,8 +16108,8 @@ ;; esac -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 -$as_echo "$ld_shlibs_CXX" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 +printf "%s\n" "$ld_shlibs_CXX" >&6; } test no = "$ld_shlibs_CXX" && can_build_shared=no with_gnu_ld_CXX=$with_gnu_ld @@ -14921,18 +16136,19 @@ # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 -$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } -if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 +printf %s "checking whether -lc should be explicitly linked in... " >&6; } +if test ${lt_cv_archive_cmds_need_lc_CXX+y} +then : + printf %s "(cached) " >&6 +else $as_nop $RM conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } 2>conftest.err; then soname=conftest lib=conftest @@ -14950,7 +16166,7 @@ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } then lt_cv_archive_cmds_need_lc_CXX=no @@ -14964,8 +16180,8 @@ $RM conftest* fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 -$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 +printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; } archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX ;; esac @@ -15034,8 +16250,8 @@ - { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 -$as_echo_n "checking dynamic linker characteristics... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 +printf %s "checking dynamic linker characteristics... " >&6; } library_names_spec= libname_spec='lib$name' @@ -15523,9 +16739,10 @@ shlibpath_overrides_runpath=no # Some binutils ld are patched to set DT_RUNPATH - if ${lt_cv_shlibpath_overrides_runpath+:} false; then : - $as_echo_n "(cached) " >&6 -else + if test ${lt_cv_shlibpath_overrides_runpath+y} +then : + printf %s "(cached) " >&6 +else $as_nop lt_cv_shlibpath_overrides_runpath=no save_LDFLAGS=$LDFLAGS save_libdir=$libdir @@ -15535,19 +16752,21 @@ /* end confdefs.h. */ int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_cxx_try_link "$LINENO"; then : - if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : +if ac_fn_cxx_try_link "$LINENO" +then : + if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null +then : lt_cv_shlibpath_overrides_runpath=yes fi fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS libdir=$save_libdir @@ -15779,8 +16998,8 @@ dynamic_linker=no ;; esac -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 -$as_echo "$dynamic_linker" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 +printf "%s\n" "$dynamic_linker" >&6; } test no = "$dynamic_linker" && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" @@ -15844,8 +17063,8 @@ - { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 -$as_echo_n "checking how to hardcode library paths into programs... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 +printf %s "checking how to hardcode library paths into programs... " >&6; } hardcode_action_CXX= if test -n "$hardcode_libdir_flag_spec_CXX" || test -n "$runpath_var_CXX" || @@ -15869,8 +17088,8 @@ # directories. hardcode_action_CXX=unsupported fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 -$as_echo "$hardcode_action_CXX" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 +printf "%s\n" "$hardcode_action_CXX" >&6; } if test relink = "$hardcode_action_CXX" || test yes = "$inherit_rpath_CXX"; then @@ -15948,76 +17167,88 @@ # Check whether --enable-openmp was given. -if test "${enable_openmp+set}" = set; then : +if test ${enable_openmp+y} +then : enableval=$enable_openmp; ql_openmp=$enableval -else +else $as_nop ql_openmp=no fi if test "$ql_openmp" = "yes" ; then - - OPENMP_CXXFLAGS= - # Check whether --enable-openmp was given. -if test "${enable_openmp+set}" = set; then : + if test -e penmp || test -e mp; then + as_fn_error $? "AC_OPENMP clobbers files named 'mp' and 'penmp'. Aborting configure because one of these files already exists." "$LINENO" 5 +fi +# Check whether --enable-openmp was given. +if test ${enable_openmp+y} +then : enableval=$enable_openmp; fi + OPENMP_CXXFLAGS= if test "$enable_openmp" != no; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5 -$as_echo_n "checking for $CXX option to support OpenMP... " >&6; } -if ${ac_cv_prog_cxx_openmp+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5 +printf %s "checking for $CXX option to support OpenMP... " >&6; } +if test ${ac_cv_prog_cxx_openmp+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_cv_prog_cxx_openmp='not found' + for ac_option in '' -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \ + -Popenmp --openmp; do + + ac_save_CXXFLAGS=$CXXFLAGS + CXXFLAGS="$CXXFLAGS $ac_option" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef _OPENMP - choke me +#error "OpenMP not supported" #endif #include -int main () { return omp_get_num_threads (); } +int main (void) { return omp_get_num_threads (); } _ACEOF -if ac_fn_cxx_try_link "$LINENO"; then : - ac_cv_prog_cxx_openmp='none needed' -else - ac_cv_prog_cxx_openmp='unsupported' - for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \ - -Popenmp --openmp; do - ac_save_CXXFLAGS=$CXXFLAGS - CXXFLAGS="$CXXFLAGS $ac_option" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +if ac_fn_cxx_try_compile "$LINENO" +then : + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef _OPENMP - choke me +#error "OpenMP not supported" #endif #include -int main () { return omp_get_num_threads (); } +int main (void) { return omp_get_num_threads (); } _ACEOF -if ac_fn_cxx_try_link "$LINENO"; then : +if ac_fn_cxx_try_link "$LINENO" +then : ac_cv_prog_cxx_openmp=$ac_option +else $as_nop + ac_cv_prog_cxx_openmp='unsupported' fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext - CXXFLAGS=$ac_save_CXXFLAGS - if test "$ac_cv_prog_cxx_openmp" != unsupported; then - break - fi - done fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + CXXFLAGS=$ac_save_CXXFLAGS + + if test "$ac_cv_prog_cxx_openmp" != 'not found'; then + break + fi + done + if test "$ac_cv_prog_cxx_openmp" = 'not found'; then + ac_cv_prog_cxx_openmp='unsupported' + elif test "$ac_cv_prog_cxx_openmp" = ''; then + ac_cv_prog_cxx_openmp='none needed' + fi + rm -f penmp mp fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5 -$as_echo "$ac_cv_prog_cxx_openmp" >&6; } - case $ac_cv_prog_cxx_openmp in #( - "none needed" | unsupported) - ;; #( - *) - OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;; - esac +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5 +printf "%s\n" "$ac_cv_prog_cxx_openmp" >&6; } + if test "$ac_cv_prog_cxx_openmp" != 'unsupported' && \ + test "$ac_cv_prog_cxx_openmp" != 'none needed'; then + OPENMP_CXXFLAGS="$ac_cv_prog_cxx_openmp" + fi fi @@ -16025,191 +17256,122 @@ fi -# Check for mandatory features - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinh" >&5 -$as_echo_n "checking for asinh... " >&6; } +# Check for C++11 support +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++11 support" >&5 +printf %s "checking for C++11 support... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include +#include + struct S { + int i = 3; + double x = 3.5; + }; + + class C { + public: + C(int) noexcept; + C(std::initializer_list); + S f() { return { 2, 1.5 }; } + }; + int -main () +main (void) { -double x = asinh(0.0); + ; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - -$as_echo "#define QL_HAVE_ASINH /**/" >>confdefs.h +if ac_fn_cxx_try_compile "$LINENO" +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no: adding -std=c++11 to CXXFLAGS" >&5 +printf "%s\n" "no: adding -std=c++11 to CXXFLAGS" >&6; } + CPP11_CXXFLAGS="-std=c++11" + CXXFLAGS="${CXXFLAGS} -std=c++11" -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext # Check for Boost components -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boost development files" >&5 -$as_echo_n "checking for Boost development files... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Boost development files" >&5 +printf %s "checking for Boost development files... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include - #include - #include - #include + #include + #include + #include int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } +if ac_fn_cxx_try_compile "$LINENO" +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } as_fn_error $? "Boost development files not found" "$LINENO" 5 fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boost version >= 1.48" >&5 -$as_echo_n "checking for Boost version >= 1.48... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Boost version >= 1.48" >&5 +printf %s "checking for Boost version >= 1.48... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { #if BOOST_VERSION < 104800 - #error too old - #endif + #error too old + #endif ; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } +if ac_fn_cxx_try_compile "$LINENO" +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } as_fn_error $? "outdated Boost installation" "$LINENO" 5 fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boost::uBLAS support" >&5 -$as_echo_n "checking for Boost::uBLAS support... " >&6; } - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include - #if BOOST_VERSION > 106300 - #include - #endif - #include - #include - #include -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Some functionality will be disabled." >&5 -$as_echo "$as_me: WARNING: Some functionality will be disabled." >&2;} - -$as_echo "#define QL_NO_UBLAS_SUPPORT /**/" >>confdefs.h - - -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boost.Test, Boost.Timer, Boost.Chrono and Boost.System" >&5 -$as_echo_n "checking for Boost.Test, Boost.Timer, Boost.Chrono and Boost.System... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Boost.Test" >&5 +printf %s "checking for Boost.Test... " >&6; } ql_original_LIBS=$LIBS ql_original_CXXFLAGS=$CXXFLAGS CC_BASENAME=`basename $CC` CC_VERSION=`echo "__GNUC__ __GNUC_MINOR__" | $CC -E -x c - | tail -n 1 | $SED -e "s/ //"` - for suffix in "-$CC_BASENAME$CC_VERSION" \ + for suffix in "" \ + "-$CC_BASENAME$CC_VERSION" \ "-$CC_BASENAME" \ - "" \ "-mt-$CC_BASENAME$CC_VERSION" \ "-$CC_BASENAME$CC_VERSION-mt" \ "-x$CC_BASENAME$CC_VERSION-mt" \ "-mt-$CC_BASENAME" \ "-$CC_BASENAME-mt" \ "-mt" ; do - boost_libs="-lboost_unit_test_framework$suffix -lboost_timer$suffix -lboost_system$suffix" - LIBS="$ql_original_LIBS $boost_libs" - # static version - CXXFLAGS="$ql_original_CXXFLAGS" - boost_unit_found=no - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include - #include - using namespace boost::unit_test_framework; - test_suite* - init_unit_test_suite(int argc, char** argv) - { - boost::timer::auto_cpu_timer t; - return (test_suite*) 0; - } - -_ACEOF -if ac_fn_cxx_try_link "$LINENO"; then : - boost_unit_found=$boost_libs - boost_defines="" - break -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - # shared version - CXXFLAGS="$ql_original_CXXFLAGS -DBOOST_TEST_MAIN -DBOOST_TEST_DYN_LINK" - boost_unit_found=no - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include - #include - using namespace boost::unit_test_framework; - test_suite* - init_unit_test_suite(int argc, char** argv) - { - boost::timer::auto_cpu_timer t; - return (test_suite*) 0; - } - -_ACEOF -if ac_fn_cxx_try_link "$LINENO"; then : - boost_unit_found=$boost_libs - boost_defines="-DBOOST_TEST_DYN_LINK" - break -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - # Boost.Timer might require Boost.Chrono - boost_libs="-lboost_unit_test_framework$suffix -lboost_timer$suffix -lboost_chrono$suffix -lboost_system$suffix" + boost_libs="-lboost_unit_test_framework$suffix" LIBS="$ql_original_LIBS $boost_libs" # static version CXXFLAGS="$ql_original_CXXFLAGS" @@ -16217,22 +17379,21 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include - #include using namespace boost::unit_test_framework; test_suite* init_unit_test_suite(int argc, char** argv) { - boost::timer::auto_cpu_timer t; return (test_suite*) 0; } _ACEOF -if ac_fn_cxx_try_link "$LINENO"; then : +if ac_fn_cxx_try_link "$LINENO" +then : boost_unit_found=$boost_libs boost_defines="" break fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext # shared version CXXFLAGS="$ql_original_CXXFLAGS -DBOOST_TEST_MAIN -DBOOST_TEST_DYN_LINK" @@ -16240,40 +17401,39 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include - #include using namespace boost::unit_test_framework; test_suite* init_unit_test_suite(int argc, char** argv) { - boost::timer::auto_cpu_timer t; return (test_suite*) 0; } _ACEOF -if ac_fn_cxx_try_link "$LINENO"; then : +if ac_fn_cxx_try_link "$LINENO" +then : boost_unit_found=$boost_libs boost_defines="-DBOOST_TEST_DYN_LINK" break fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext done LIBS="$ql_original_LIBS" CXXFLAGS="$ql_original_CXXFLAGS" if test "$boost_unit_found" = no ; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } BOOST_UNIT_TEST_LIB="" BOOST_UNIT_TEST_MAIN_CXXFLAGS="" - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Boost unit-test framework not found." >&5 -$as_echo "$as_me: WARNING: Boost unit-test framework not found." >&2;} - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The test suite will be disabled." >&5 -$as_echo "$as_me: WARNING: The test suite will be disabled." >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Boost unit-test framework not found." >&5 +printf "%s\n" "$as_me: WARNING: Boost unit-test framework not found." >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: The test suite will be disabled." >&5 +printf "%s\n" "$as_me: WARNING: The test suite will be disabled." >&2;} else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } BOOST_UNIT_TEST_LIB=$boost_libs BOOST_UNIT_TEST_MAIN_CXXFLAGS=$boost_defines @@ -16284,7 +17444,6 @@ - if test "x${BOOST_UNIT_TEST_LIB}" != "x"; then BOOST_UNIT_TEST_FOUND_TRUE= BOOST_UNIT_TEST_FOUND_FALSE='#' @@ -16294,37 +17453,6 @@ fi -# Check for optional features -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking long long support" >&5 -$as_echo_n "checking long long support... " >&6; } - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ -long long i; - unsigned long long j; - - ; - return 0; -} -_ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - -$as_echo "#define QL_HAVE_LONG_LONG /**/" >>confdefs.h - - -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - - # Check for Emacs # If set to t, that means we are running in a shell under Emacs. # If you have an Emacs named "t", then use the full path. @@ -16333,11 +17461,12 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_EMACS+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_EMACS+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$EMACS"; then ac_cv_prog_EMACS="$EMACS" # Let the user override the test. else @@ -16345,11 +17474,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_EMACS="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -16360,11 +17493,11 @@ fi EMACS=$ac_cv_prog_EMACS if test -n "$EMACS"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EMACS" >&5 -$as_echo "$EMACS" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $EMACS" >&5 +printf "%s\n" "$EMACS" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -16376,19 +17509,21 @@ # Check whether --with-lispdir was given. -if test "${with_lispdir+set}" = set; then : +if test ${with_lispdir+y} +then : withval=$with_lispdir; lispdir="$withval" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking where .elc files should go" >&5 -$as_echo_n "checking where .elc files should go... " >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lispdir" >&5 -$as_echo "$lispdir" >&6; } -else - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking where .elc files should go" >&5 -$as_echo_n "checking where .elc files should go... " >&6; } -if ${am_cv_lispdir+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where .elc files should go" >&5 +printf %s "checking where .elc files should go... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lispdir" >&5 +printf "%s\n" "$lispdir" >&6; } +else $as_nop + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where .elc files should go" >&5 +printf %s "checking where .elc files should go... " >&6; } +if test ${am_cv_lispdir+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test $EMACS != "no"; then if test x${lispdir+set} != xset; then @@ -16397,10 +17532,10 @@ # which is non-obvious for non-emacs users. # Redirecting /dev/null should help a bit; pity we can't detect "broken" # emacsen earlier and avoid running this altogether. - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$EMACS -batch -Q -eval '(while load-path (princ (concat (car load-path) \"\\n\")) (setq load-path (cdr load-path)))' conftest.out"; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$EMACS -batch -Q -eval '(while load-path (princ (concat (car load-path) \"\\n\")) (setq load-path (cdr load-path)))' conftest.out"; } >&5 ($EMACS -batch -Q -eval '(while load-path (princ (concat (car load-path) "\n")) (setq load-path (cdr load-path)))' conftest.out) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } am_cv_lispdir=`sed -n \ -e 's,/$,,' \ @@ -16413,8 +17548,8 @@ test -z "$am_cv_lispdir" && am_cv_lispdir='${datadir}/emacs/site-lisp' fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_lispdir" >&5 -$as_echo "$am_cv_lispdir" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_lispdir" >&5 +printf "%s\n" "$am_cv_lispdir" >&6; } lispdir="$am_cv_lispdir" fi @@ -16433,11 +17568,12 @@ # Check for tools needed for building documentation # Extract the first word of "doxygen", so it can be a program name with args. set dummy doxygen; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_DOXYGEN+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_DOXYGEN+y} +then : + printf %s "(cached) " >&6 +else $as_nop case $DOXYGEN in [\\/]* | ?:[\\/]*) ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. @@ -16447,11 +17583,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_path_DOXYGEN="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -16463,21 +17603,22 @@ fi DOXYGEN=$ac_cv_path_DOXYGEN if test -n "$DOXYGEN"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5 -$as_echo "$DOXYGEN" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5 +printf "%s\n" "$DOXYGEN" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi # Extract the first word of "sed", so it can be a program name with args. set dummy sed; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_SED+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_SED+y} +then : + printf %s "(cached) " >&6 +else $as_nop case $SED in [\\/]* | ?:[\\/]*) ac_cv_path_SED="$SED" # Let the user override the test with a path. @@ -16487,11 +17628,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_path_SED="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -16503,21 +17648,22 @@ fi SED=$ac_cv_path_SED if test -n "$SED"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 -$as_echo "$SED" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 +printf "%s\n" "$SED" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi # Extract the first word of "latex", so it can be a program name with args. set dummy latex; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_LATEX+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_LATEX+y} +then : + printf %s "(cached) " >&6 +else $as_nop case $LATEX in [\\/]* | ?:[\\/]*) ac_cv_path_LATEX="$LATEX" # Let the user override the test with a path. @@ -16527,11 +17673,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_LATEX="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_path_LATEX="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -16543,21 +17693,22 @@ fi LATEX=$ac_cv_path_LATEX if test -n "$LATEX"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEX" >&5 -$as_echo "$LATEX" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LATEX" >&5 +printf "%s\n" "$LATEX" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi # Extract the first word of "pdflatex", so it can be a program name with args. set dummy pdflatex; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_PDFLATEX+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_PDFLATEX+y} +then : + printf %s "(cached) " >&6 +else $as_nop case $PDFLATEX in [\\/]* | ?:[\\/]*) ac_cv_path_PDFLATEX="$PDFLATEX" # Let the user override the test with a path. @@ -16567,11 +17718,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_PDFLATEX="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_path_PDFLATEX="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -16583,21 +17738,22 @@ fi PDFLATEX=$ac_cv_path_PDFLATEX if test -n "$PDFLATEX"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFLATEX" >&5 -$as_echo "$PDFLATEX" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PDFLATEX" >&5 +printf "%s\n" "$PDFLATEX" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi # Extract the first word of "makeindex", so it can be a program name with args. set dummy makeindex; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_MAKEINDEX+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_MAKEINDEX+y} +then : + printf %s "(cached) " >&6 +else $as_nop case $MAKEINDEX in [\\/]* | ?:[\\/]*) ac_cv_path_MAKEINDEX="$MAKEINDEX" # Let the user override the test with a path. @@ -16607,11 +17763,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_path_MAKEINDEX="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -16623,21 +17783,22 @@ fi MAKEINDEX=$ac_cv_path_MAKEINDEX if test -n "$MAKEINDEX"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINDEX" >&5 -$as_echo "$MAKEINDEX" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAKEINDEX" >&5 +printf "%s\n" "$MAKEINDEX" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi # Extract the first word of "dvips", so it can be a program name with args. set dummy dvips; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_path_DVIPS+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_path_DVIPS+y} +then : + printf %s "(cached) " >&6 +else $as_nop case $DVIPS in [\\/]* | ?:[\\/]*) ac_cv_path_DVIPS="$DVIPS" # Let the user override the test with a path. @@ -16647,11 +17808,15 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_DVIPS="$as_dir/$ac_word$ac_exec_ext" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_path_DVIPS="$as_dir$ac_word$ac_exec_ext" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -16663,11 +17828,11 @@ fi DVIPS=$ac_cv_path_DVIPS if test -n "$DVIPS"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIPS" >&5 -$as_echo "$DVIPS" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DVIPS" >&5 +printf "%s\n" "$DVIPS" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -16676,7 +17841,7 @@ # site configuration # AC_ARG_WITH([real], -# AC_HELP_STRING([--with-real=type], +# AS_HELP_STRING([--with-real=type], # [The given type will be used for floating-point # calculations. # In case this option is not invoked, double @@ -16689,7 +17854,7 @@ # floating-point calculations.])]) # AC_ARG_WITH([integer], -# AC_HELP_STRING([--with-integer=type], +# AS_HELP_STRING([--with-integer=type], # [The given type will be used for integer # calculations. At least an int is required. # In case this option is not invoked, int @@ -16704,7 +17869,7 @@ # is required.])]) # AC_ARG_WITH([big-integer], -# AC_HELP_STRING([--with-big-integer=type], +# AS_HELP_STRING([--with-big-integer=type], # [The given type will be used for large integer # calculations. At least 4 bytes are required. # In case this option is not invoked, long @@ -16720,179 +17885,188 @@ # Check whether --enable-error-lines was given. -if test "${enable_error_lines+set}" = set; then : +if test ${enable_error_lines+y} +then : enableval=$enable_error_lines; ql_error_lines=$enableval -else +else $as_nop ql_error_lines=no fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to add file and line information to errors" >&5 -$as_echo_n "checking whether to add file and line information to errors... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to add file and line information to errors" >&5 +printf %s "checking whether to add file and line information to errors... " >&6; } if test "$ql_error_lines" = "yes" ; then -$as_echo "#define QL_ERROR_LINES 1" >>confdefs.h +printf "%s\n" "#define QL_ERROR_LINES 1" >>confdefs.h fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ql_error_lines" >&5 -$as_echo "$ql_error_lines" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ql_error_lines" >&5 +printf "%s\n" "$ql_error_lines" >&6; } # Check whether --enable-error-functions was given. -if test "${enable_error_functions+set}" = set; then : +if test ${enable_error_functions+y} +then : enableval=$enable_error_functions; ql_error_functions=$enableval -else +else $as_nop ql_error_functions=no fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to add function information to errors" >&5 -$as_echo_n "checking whether to add function information to errors... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to add function information to errors" >&5 +printf %s "checking whether to add function information to errors... " >&6; } if test "$ql_error_functions" = "yes" ; then -$as_echo "#define QL_ERROR_FUNCTIONS 1" >>confdefs.h +printf "%s\n" "#define QL_ERROR_FUNCTIONS 1" >>confdefs.h fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ql_error_functions" >&5 -$as_echo "$ql_error_functions" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ql_error_functions" >&5 +printf "%s\n" "$ql_error_functions" >&6; } # Check whether --enable-tracing was given. -if test "${enable_tracing+set}" = set; then : +if test ${enable_tracing+y} +then : enableval=$enable_tracing; ql_tracing=$enableval -else +else $as_nop ql_tracing=no fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable tracing" >&5 -$as_echo_n "checking whether to enable tracing... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable tracing" >&5 +printf %s "checking whether to enable tracing... " >&6; } if test "$ql_tracing" = "yes" ; then -$as_echo "#define QL_ENABLE_TRACING 1" >>confdefs.h +printf "%s\n" "#define QL_ENABLE_TRACING 1" >>confdefs.h fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ql_tracing" >&5 -$as_echo "$ql_tracing" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ql_tracing" >&5 +printf "%s\n" "$ql_tracing" >&6; } -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable indexed coupons" >&5 -$as_echo_n "checking whether to enable indexed coupons... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable indexed coupons" >&5 +printf %s "checking whether to enable indexed coupons... " >&6; } # Check whether --enable-indexed-coupons was given. -if test "${enable_indexed_coupons+set}" = set; then : +if test ${enable_indexed_coupons+y} +then : enableval=$enable_indexed_coupons; ql_indexed_coupon=$enableval -else +else $as_nop ql_indexed_coupon=no fi if test "$ql_indexed_coupon" = "yes" ; then -$as_echo "#define QL_USE_INDEXED_COUPON 1" >>confdefs.h +printf "%s\n" "#define QL_USE_INDEXED_COUPON 1" >>confdefs.h fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ql_indexed_coupon" >&5 -$as_echo "$ql_indexed_coupon" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ql_indexed_coupon" >&5 +printf "%s\n" "$ql_indexed_coupon" >&6; } -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable extra safety checks" >&5 -$as_echo_n "checking whether to enable extra safety checks... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable extra safety checks" >&5 +printf %s "checking whether to enable extra safety checks... " >&6; } # Check whether --enable-extra-safety-checks was given. -if test "${enable_extra_safety_checks+set}" = set; then : +if test ${enable_extra_safety_checks+y} +then : enableval=$enable_extra_safety_checks; ql_belt_and_braces=$enableval -else +else $as_nop ql_belt_and_braces=no fi if test "$ql_belt_and_braces" = "yes" ; then -$as_echo "#define QL_EXTRA_SAFETY_CHECKS 1" >>confdefs.h +printf "%s\n" "#define QL_EXTRA_SAFETY_CHECKS 1" >>confdefs.h fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ql_belt_and_braces" >&5 -$as_echo "$ql_belt_and_braces" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ql_belt_and_braces" >&5 +printf "%s\n" "$ql_belt_and_braces" >&6; } -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable sessions" >&5 -$as_echo_n "checking whether to enable sessions... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable sessions" >&5 +printf %s "checking whether to enable sessions... " >&6; } # Check whether --enable-sessions was given. -if test "${enable_sessions+set}" = set; then : +if test ${enable_sessions+y} +then : enableval=$enable_sessions; ql_use_sessions=$enableval -else +else $as_nop ql_use_sessions=no fi if test "$ql_use_sessions" = "yes" ; then -$as_echo "#define QL_ENABLE_SESSIONS 1" >>confdefs.h +printf "%s\n" "#define QL_ENABLE_SESSIONS 1" >>confdefs.h fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ql_use_sessions" >&5 -$as_echo "$ql_use_sessions" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ql_use_sessions" >&5 +printf "%s\n" "$ql_use_sessions" >&6; } -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable thread-safe observer pattern" >&5 -$as_echo_n "checking whether to enable thread-safe observer pattern... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable thread-safe observer pattern" >&5 +printf %s "checking whether to enable thread-safe observer pattern... " >&6; } # Check whether --enable-thread-safe-observer-pattern was given. -if test "${enable_thread_safe_observer_pattern+set}" = set; then : +if test ${enable_thread_safe_observer_pattern+y} +then : enableval=$enable_thread_safe_observer_pattern; ql_use_tsop=$enableval -else +else $as_nop ql_use_tsop=no fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ql_use_tsop" >&5 -$as_echo "$ql_use_tsop" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ql_use_tsop" >&5 +printf "%s\n" "$ql_use_tsop" >&6; } if test "$ql_use_tsop" = "yes" ; then -$as_echo "#define QL_ENABLE_THREAD_SAFE_OBSERVER_PATTERN 1" >>confdefs.h +printf "%s\n" "#define QL_ENABLE_THREAD_SAFE_OBSERVER_PATTERN 1" >>confdefs.h fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable thread-safe singleton initialization" >&5 -$as_echo_n "checking whether to enable thread-safe singleton initialization... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable thread-safe singleton initialization" >&5 +printf %s "checking whether to enable thread-safe singleton initialization... " >&6; } # Check whether --enable-thread-safe-singleton-init was given. -if test "${enable_thread_safe_singleton_init+set}" = set; then : +if test ${enable_thread_safe_singleton_init+y} +then : enableval=$enable_thread_safe_singleton_init; ql_use_safe_singleton_init=$enableval -else +else $as_nop ql_use_safe_singleton_init=no fi if test "$ql_use_safe_singleton_init" = "yes" ; then -$as_echo "#define QL_ENABLE_SINGLETON_THREAD_SAFE_INIT 1" >>confdefs.h +printf "%s\n" "#define QL_ENABLE_SINGLETON_THREAD_SAFE_INIT 1" >>confdefs.h fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ql_use_safe_singleton_init" >&5 -$as_echo "$ql_use_safe_singleton_init" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ql_use_safe_singleton_init" >&5 +printf "%s\n" "$ql_use_safe_singleton_init" >&6; } -if test "$ql_use_tsop" = "yes" || test "$ql_use_safe_singleton_init" = "yes"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boost version >= 1.58" >&5 -$as_echo_n "checking for Boost version >= 1.58... " >&6; } +if test "$ql_use_sessions" = "yes" || test "$ql_use_tsop" = "yes" || test "$ql_use_safe_singleton_init" = "yes"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Boost version >= 1.58" >&5 +printf %s "checking for Boost version >= 1.58... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { #if BOOST_VERSION < 105800 - #error too old - #endif + #error too old + #endif ; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } +if ac_fn_cxx_try_compile "$LINENO" +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } as_fn_error $? "Boost version 1.58 or higher is required for the thread-safe observer pattern" "$LINENO" 5 fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Boost thread, signals2 and system are available" >&5 -$as_echo_n "checking whether Boost thread, signals2 and system are available... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Boost thread, signals2 and system are available" >&5 +printf %s "checking whether Boost thread, signals2 and system are available... " >&6; } ql_original_LIBS=$LIBS ql_original_CXXFLAGS=$CXXFLAGS CC_BASENAME=`basename $CC` CC_VERSION=`echo "__GNUC__ __GNUC_MINOR__" | $CC -E -x c - | tail -n 1 | $SED -e "s/ //"` - for suffix in "-$CC_BASENAME$CC_VERSION" \ + for suffix in "" \ + "-$CC_BASENAME$CC_VERSION" \ "-$CC_BASENAME" \ - "" \ "-mt-$CC_BASENAME$CC_VERSION" \ "-$CC_BASENAME$CC_VERSION-mt" \ "-x$CC_BASENAME$CC_VERSION-mt" \ @@ -16923,29 +18097,32 @@ } _ACEOF -if ac_fn_cxx_try_link "$LINENO"; then : +if ac_fn_cxx_try_link "$LINENO" +then : boost_thread_found=$boost_thread_lib break fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext done LIBS="$ql_original_LIBS" CXXFLAGS="$ql_original_CXXFLAGS" if test "$boost_thread_found" = no ; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } BOOST_THREAD_LIB="" as_fn_error $? "Boost thread, signals2 and system libraries not found. These libraries are required by the thread-safe observer pattern or by the parallel unit test runner." "$LINENO" 5 else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } BOOST_THREAD_LIB=$boost_thread_lib + PTHREAD_CXXFLAGS="-pthread" + CXXFLAGS="${CXXFLAGS} -pthread" fi @@ -16955,59 +18132,61 @@ fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable parallel unit test runner" >&5 -$as_echo_n "checking whether to enable parallel unit test runner... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable parallel unit test runner" >&5 +printf %s "checking whether to enable parallel unit test runner... " >&6; } # Check whether --enable-parallel-unit-test-runner was given. -if test "${enable_parallel_unit_test_runner+set}" = set; then : +if test ${enable_parallel_unit_test_runner+y} +then : enableval=$enable_parallel_unit_test_runner; ql_use_parallel_test=$enableval -else +else $as_nop ql_use_parallel_test=no fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ql_use_parallel_test" >&5 -$as_echo "$ql_use_parallel_test" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ql_use_parallel_test" >&5 +printf "%s\n" "$ql_use_parallel_test" >&6; } if test "$ql_use_parallel_test" = "yes" ; then -$as_echo "#define QL_ENABLE_PARALLEL_UNIT_TEST_RUNNER 1" >>confdefs.h +printf "%s\n" "#define QL_ENABLE_PARALLEL_UNIT_TEST_RUNNER 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boost version >= 1.59" >&5 -$as_echo_n "checking for Boost version >= 1.59... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Boost version >= 1.59" >&5 +printf %s "checking for Boost version >= 1.59... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { #if BOOST_VERSION < 105900 - #error too old - #endif + #error too old + #endif ; return 0; } _ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } +if ac_fn_cxx_try_compile "$LINENO" +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } as_fn_error $? "Boost version 1.59 or higher is required for the parallel unit test runner." "$LINENO" 5 fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext if test "$ql_use_tsop" != "yes" ; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Boost thread, signals2 and system are available" >&5 -$as_echo_n "checking whether Boost thread, signals2 and system are available... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Boost thread, signals2 and system are available" >&5 +printf %s "checking whether Boost thread, signals2 and system are available... " >&6; } ql_original_LIBS=$LIBS ql_original_CXXFLAGS=$CXXFLAGS CC_BASENAME=`basename $CC` CC_VERSION=`echo "__GNUC__ __GNUC_MINOR__" | $CC -E -x c - | tail -n 1 | $SED -e "s/ //"` - for suffix in "-$CC_BASENAME$CC_VERSION" \ + for suffix in "" \ + "-$CC_BASENAME$CC_VERSION" \ "-$CC_BASENAME" \ - "" \ "-mt-$CC_BASENAME$CC_VERSION" \ "-$CC_BASENAME$CC_VERSION-mt" \ "-x$CC_BASENAME$CC_VERSION-mt" \ @@ -17038,36 +18217,39 @@ } _ACEOF -if ac_fn_cxx_try_link "$LINENO"; then : +if ac_fn_cxx_try_link "$LINENO" +then : boost_thread_found=$boost_thread_lib break fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext done LIBS="$ql_original_LIBS" CXXFLAGS="$ql_original_CXXFLAGS" if test "$boost_thread_found" = no ; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } BOOST_THREAD_LIB="" as_fn_error $? "Boost thread, signals2 and system libraries not found. These libraries are required by the thread-safe observer pattern or by the parallel unit test runner." "$LINENO" 5 else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } BOOST_THREAD_LIB=$boost_thread_lib + PTHREAD_CXXFLAGS="-pthread" + CXXFLAGS="${CXXFLAGS} -pthread" fi fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Boost interprocess is available" >&5 -$as_echo_n "checking whether Boost interprocess is available... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Boost interprocess is available" >&5 +printf %s "checking whether Boost interprocess is available... " >&6; } ql_original_LIBS=$LIBS @@ -17088,25 +18270,26 @@ } _ACEOF -if ac_fn_cxx_try_link "$LINENO"; then : +if ac_fn_cxx_try_link "$LINENO" +then : boost_interprocess_found=$boost_interprocess_lib break fi -rm -f core conftest.err conftest.$ac_objext \ +rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext done LIBS="$ql_original_LIBS" if test "$boost_interprocess_found" = no ; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } BOOST_INTERPROCESS_LIB="" as_fn_error $? "The boost library interprocess does not work on this system but is required to use the parallel unit test runner." "$LINENO" 5 else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } BOOST_INTERPROCESS_LIB=$boost_interprocess_lib fi @@ -17116,12 +18299,13 @@ fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install examples" >&5 -$as_echo_n "checking whether to install examples... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to install examples" >&5 +printf %s "checking whether to install examples... " >&6; } # Check whether --enable-examples was given. -if test "${enable_examples+set}" = set; then : +if test ${enable_examples+y} +then : enableval=$enable_examples; ql_install_examples=$enableval -else +else $as_nop ql_install_examples=no fi @@ -17133,15 +18317,16 @@ AUTO_EXAMPLES_FALSE= fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ql_install_examples" >&5 -$as_echo "$ql_install_examples" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ql_install_examples" >&5 +printf "%s\n" "$ql_install_examples" >&6; } -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install the benchmark" >&5 -$as_echo_n "checking whether to install the benchmark... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to install the benchmark" >&5 +printf %s "checking whether to install the benchmark... " >&6; } # Check whether --enable-benchmark was given. -if test "${enable_benchmark+set}" = set; then : +if test ${enable_benchmark+y} +then : enableval=$enable_benchmark; ql_install_benchmark=$enableval -else +else $as_nop ql_install_benchmark=no fi @@ -17153,15 +18338,16 @@ AUTO_BENCHMARK_FALSE= fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ql_install_benchmark" >&5 -$as_echo "$ql_install_benchmark" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ql_install_benchmark" >&5 +printf "%s\n" "$ql_install_benchmark" >&6; } -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use unity build" >&5 -$as_echo_n "checking whether to use unity build... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use unity build" >&5 +printf %s "checking whether to use unity build... " >&6; } # Check whether --enable-unity-build was given. -if test "${enable_unity_build+set}" = set; then : +if test ${enable_unity_build+y} +then : enableval=$enable_unity_build; ql_use_unity_build=$enableval -else +else $as_nop ql_use_unity_build=no fi @@ -17173,138 +18359,164 @@ UNITY_BUILD_FALSE= fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ql_use_unity_build" >&5 -$as_echo "$ql_use_unity_build" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ql_use_unity_build" >&5 +printf "%s\n" "$ql_use_unity_build" >&6; } -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable intraday date and daycounters" >&5 -$as_echo_n "checking whether to enable intraday date and daycounters... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable intraday date and daycounters" >&5 +printf %s "checking whether to enable intraday date and daycounters... " >&6; } # Check whether --enable-intraday was given. -if test "${enable_intraday+set}" = set; then : +if test ${enable_intraday+y} +then : enableval=$enable_intraday; ql_use_intraday=$enableval -else +else $as_nop ql_use_intraday=no fi if test "$ql_use_intraday" = "yes" ; then -$as_echo "#define QL_HIGH_RESOLUTION_DATE 1" >>confdefs.h +printf "%s\n" "#define QL_HIGH_RESOLUTION_DATE 1" >>confdefs.h fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ql_use_intraday" >&5 -$as_echo "$ql_use_intraday" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ql_use_intraday" >&5 +printf "%s\n" "$ql_use_intraday" >&6; } -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable standard smart pointers" >&5 -$as_echo_n "checking whether to enable standard smart pointers... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable standard smart pointers" >&5 +printf %s "checking whether to enable standard smart pointers... " >&6; } # Check whether --enable-std-pointers was given. -if test "${enable_std_pointers+set}" = set; then : +if test ${enable_std_pointers+y} +then : enableval=$enable_std_pointers; ql_use_std_pointers=$enableval -else +else $as_nop ql_use_std_pointers=no fi if test "$ql_use_std_pointers" = "yes" ; then -$as_echo "#define QL_USE_STD_SHARED_PTR 1" >>confdefs.h +printf "%s\n" "#define QL_USE_STD_SHARED_PTR 1" >>confdefs.h fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ql_use_std_pointers" >&5 -$as_echo "$ql_use_std_pointers" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ql_use_std_pointers" >&5 +printf "%s\n" "$ql_use_std_pointers" >&6; } -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable std::unique_ptr instead of std::auto_ptr" >&5 -$as_echo_n "checking whether to enable std::unique_ptr instead of std::auto_ptr... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable std::unique_ptr instead of std::auto_ptr" >&5 +printf %s "checking whether to enable std::unique_ptr instead of std::auto_ptr... " >&6; } # Check whether --enable-std-unique-ptr was given. -if test "${enable_std_unique_ptr+set}" = set; then : +if test ${enable_std_unique_ptr+y} +then : enableval=$enable_std_unique_ptr; ql_use_unique_ptr=$enableval -else - ql_use_unique_ptr=no +else $as_nop + ql_use_unique_ptr=yes fi if test "$ql_use_unique_ptr" = "yes" ; then -$as_echo "#define QL_USE_STD_UNIQUE_PTR 1" >>confdefs.h +printf "%s\n" "#define QL_USE_STD_UNIQUE_PTR 1" >>confdefs.h fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ql_use_unique_ptr" >&5 -$as_echo "$ql_use_unique_ptr" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ql_use_unique_ptr" >&5 +printf "%s\n" "$ql_use_unique_ptr" >&6; } -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable std::function" >&5 -$as_echo_n "checking whether to enable std::function... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable std::function" >&5 +printf %s "checking whether to enable std::function... " >&6; } # Check whether --enable-std-function was given. -if test "${enable_std_function+set}" = set; then : +if test ${enable_std_function+y} +then : enableval=$enable_std_function; ql_use_std_function=$enableval -else +else $as_nop ql_use_std_function=no fi if test "$ql_use_std_function" = "yes" ; then -$as_echo "#define QL_USE_STD_FUNCTION 1" >>confdefs.h +printf "%s\n" "#define QL_USE_STD_FUNCTION 1" >>confdefs.h fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ql_use_std_function" >&5 -$as_echo "$ql_use_std_function" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ql_use_std_function" >&5 +printf "%s\n" "$ql_use_std_function" >&6; } -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable std::tuple" >&5 -$as_echo_n "checking whether to enable std::tuple... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable std::tuple" >&5 +printf %s "checking whether to enable std::tuple... " >&6; } # Check whether --enable-std-tuple was given. -if test "${enable_std_tuple+set}" = set; then : +if test ${enable_std_tuple+y} +then : enableval=$enable_std_tuple; ql_use_std_tuple=$enableval -else +else $as_nop ql_use_std_tuple=no fi if test "$ql_use_std_tuple" = "yes" ; then -$as_echo "#define QL_USE_STD_TUPLE 1" >>confdefs.h +printf "%s\n" "#define QL_USE_STD_TUPLE 1" >>confdefs.h fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ql_use_std_pointers" >&5 -$as_echo "$ql_use_std_pointers" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ql_use_std_pointers" >&5 +printf "%s\n" "$ql_use_std_pointers" >&6; } -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable available std classes" >&5 -$as_echo_n "checking whether to enable available std classes... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable available std classes" >&5 +printf %s "checking whether to enable available std classes... " >&6; } # Check whether --enable-std-classes was given. -if test "${enable_std_classes+set}" = set; then : +if test ${enable_std_classes+y} +then : enableval=$enable_std_classes; ql_use_std_classes=$enableval -else +else $as_nop ql_use_std_classes=no fi if test "$ql_use_std_classes" = "yes" ; then -$as_echo "#define QL_USE_STD_SHARED_PTR 1" >>confdefs.h +printf "%s\n" "#define QL_USE_STD_SHARED_PTR 1" >>confdefs.h + + +printf "%s\n" "#define QL_USE_STD_UNIQUE_PTR 1" >>confdefs.h + +printf "%s\n" "#define QL_USE_STD_FUNCTION 1" >>confdefs.h -$as_echo "#define QL_USE_STD_UNIQUE_PTR 1" >>confdefs.h +printf "%s\n" "#define QL_USE_STD_TUPLE 1" >>confdefs.h -$as_echo "#define QL_USE_STD_FUNCTION 1" >>confdefs.h +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ql_use_std_classes" >&5 +printf "%s\n" "$ql_use_std_classes" >&6; } + + +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable the Disposable class template" >&5 +printf %s "checking whether to enable the Disposable class template... " >&6; } +# Check whether --enable-disposable was given. +if test ${enable_disposable+y} +then : + enableval=$enable_disposable; ql_use_disposable=$enableval +else $as_nop + ql_use_disposable=no +fi +if test "$ql_use_disposable" = "yes" ; then -$as_echo "#define QL_USE_STD_TUPLE 1" >>confdefs.h +printf "%s\n" "#define QL_USE_DISPOSABLE 1" >>confdefs.h fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ql_use_std_classes" >&5 -$as_echo "$ql_use_std_classes" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ql_use_disposable" >&5 +printf "%s\n" "$ql_use_disposable" >&6; } + # manual configurations for specific hosts case $host in powerpc-apple-darwin*) -$as_echo "#define QL_PATCH_DARWIN 1" >>confdefs.h +printf "%s\n" "#define QL_PATCH_DARWIN 1" >>confdefs.h ;; sparc-sun-solaris*) -$as_echo "#define QL_PATCH_SOLARIS 1" >>confdefs.h +printf "%s\n" "#define QL_PATCH_SOLARIS 1" >>confdefs.h ;; esac # done, output the configured files -ac_config_files="$ac_config_files Makefile ql/Makefile ql/cashflows/Makefile ql/currencies/Makefile ql/experimental/Makefile ql/experimental/amortizingbonds/Makefile ql/experimental/asian/Makefile ql/experimental/averageois/Makefile ql/experimental/barrieroption/Makefile ql/experimental/basismodels/Makefile ql/experimental/callablebonds/Makefile ql/experimental/catbonds/Makefile ql/experimental/commodities/Makefile ql/experimental/convertiblebonds/Makefile ql/experimental/coupons/Makefile ql/experimental/credit/Makefile ql/experimental/exoticoptions/Makefile ql/experimental/finitedifferences/Makefile ql/experimental/forward/Makefile ql/experimental/futures/Makefile ql/experimental/fx/Makefile ql/experimental/inflation/Makefile ql/experimental/lattices/Makefile ql/experimental/math/Makefile ql/experimental/mcbasket/Makefile ql/experimental/models/Makefile ql/experimental/processes/Makefile ql/experimental/risk/Makefile ql/experimental/shortrate/Makefile ql/experimental/swaptions/Makefile ql/experimental/termstructures/Makefile ql/experimental/variancegamma/Makefile ql/experimental/varianceoption/Makefile ql/experimental/volatility/Makefile ql/indexes/Makefile ql/indexes/ibor/Makefile ql/indexes/inflation/Makefile ql/indexes/swap/Makefile ql/instruments/Makefile ql/instruments/bonds/Makefile ql/legacy/Makefile ql/legacy/libormarketmodels/Makefile ql/math/Makefile ql/math/copulas/Makefile ql/math/distributions/Makefile ql/math/integrals/Makefile ql/math/interpolations/Makefile ql/math/matrixutilities/Makefile ql/math/ode/Makefile ql/math/optimization/Makefile ql/math/randomnumbers/Makefile ql/math/solvers1d/Makefile ql/math/statistics/Makefile ql/methods/Makefile ql/methods/finitedifferences/Makefile ql/methods/finitedifferences/meshers/Makefile ql/methods/finitedifferences/operators/Makefile ql/methods/finitedifferences/schemes/Makefile ql/methods/finitedifferences/solvers/Makefile ql/methods/finitedifferences/stepconditions/Makefile ql/methods/finitedifferences/utilities/Makefile ql/methods/lattices/Makefile ql/methods/montecarlo/Makefile ql/models/Makefile ql/models/equity/Makefile ql/models/marketmodels/Makefile ql/models/marketmodels/browniangenerators/Makefile ql/models/marketmodels/callability/Makefile ql/models/marketmodels/correlations/Makefile ql/models/marketmodels/curvestates/Makefile ql/models/marketmodels/driftcomputation/Makefile ql/models/marketmodels/evolvers/Makefile ql/models/marketmodels/evolvers/volprocesses/Makefile ql/models/marketmodels/models/Makefile ql/models/marketmodels/pathwisegreeks/Makefile ql/models/marketmodels/products/Makefile ql/models/marketmodels/products/onestep/Makefile ql/models/marketmodels/products/multistep/Makefile ql/models/marketmodels/products/pathwise/Makefile ql/models/shortrate/Makefile ql/models/shortrate/calibrationhelpers/Makefile ql/models/shortrate/onefactormodels/Makefile ql/models/shortrate/twofactormodels/Makefile ql/models/volatility/Makefile ql/patterns/Makefile ql/pricingengines/Makefile ql/pricingengines/asian/Makefile ql/pricingengines/barrier/Makefile ql/pricingengines/basket/Makefile ql/pricingengines/bond/Makefile ql/pricingengines/capfloor/Makefile ql/pricingengines/cliquet/Makefile ql/pricingengines/credit/Makefile ql/pricingengines/forward/Makefile ql/pricingengines/inflation/Makefile ql/pricingengines/lookback/Makefile ql/pricingengines/quanto/Makefile ql/pricingengines/swap/Makefile ql/pricingengines/swaption/Makefile ql/pricingengines/vanilla/Makefile ql/processes/Makefile ql/quotes/Makefile ql/termstructures/Makefile ql/termstructures/credit/Makefile ql/termstructures/inflation/Makefile ql/termstructures/volatility/Makefile ql/termstructures/volatility/equityfx/Makefile ql/termstructures/volatility/capfloor/Makefile ql/termstructures/volatility/inflation/Makefile ql/termstructures/volatility/optionlet/Makefile ql/termstructures/volatility/swaption/Makefile ql/termstructures/yield/Makefile ql/time/Makefile ql/time/calendars/Makefile ql/time/daycounters/Makefile ql/utilities/Makefile man/Makefile m4/Makefile Docs/Makefile Examples/Makefile test-suite/Makefile" +ac_config_files="$ac_config_files Makefile ql/Makefile ql/cashflows/Makefile ql/currencies/Makefile ql/experimental/Makefile ql/experimental/amortizingbonds/Makefile ql/experimental/asian/Makefile ql/experimental/averageois/Makefile ql/experimental/barrieroption/Makefile ql/experimental/basismodels/Makefile ql/experimental/callablebonds/Makefile ql/experimental/catbonds/Makefile ql/experimental/commodities/Makefile ql/experimental/convertiblebonds/Makefile ql/experimental/coupons/Makefile ql/experimental/credit/Makefile ql/experimental/exoticoptions/Makefile ql/experimental/finitedifferences/Makefile ql/experimental/forward/Makefile ql/experimental/fx/Makefile ql/experimental/inflation/Makefile ql/experimental/lattices/Makefile ql/experimental/math/Makefile ql/experimental/mcbasket/Makefile ql/experimental/models/Makefile ql/experimental/processes/Makefile ql/experimental/risk/Makefile ql/experimental/shortrate/Makefile ql/experimental/swaptions/Makefile ql/experimental/termstructures/Makefile ql/experimental/variancegamma/Makefile ql/experimental/varianceoption/Makefile ql/experimental/volatility/Makefile ql/indexes/Makefile ql/indexes/ibor/Makefile ql/indexes/inflation/Makefile ql/indexes/swap/Makefile ql/instruments/Makefile ql/instruments/bonds/Makefile ql/legacy/Makefile ql/legacy/libormarketmodels/Makefile ql/math/Makefile ql/math/copulas/Makefile ql/math/distributions/Makefile ql/math/integrals/Makefile ql/math/interpolations/Makefile ql/math/matrixutilities/Makefile ql/math/ode/Makefile ql/math/optimization/Makefile ql/math/randomnumbers/Makefile ql/math/solvers1d/Makefile ql/math/statistics/Makefile ql/methods/Makefile ql/methods/finitedifferences/Makefile ql/methods/finitedifferences/meshers/Makefile ql/methods/finitedifferences/operators/Makefile ql/methods/finitedifferences/schemes/Makefile ql/methods/finitedifferences/solvers/Makefile ql/methods/finitedifferences/stepconditions/Makefile ql/methods/finitedifferences/utilities/Makefile ql/methods/lattices/Makefile ql/methods/montecarlo/Makefile ql/models/Makefile ql/models/equity/Makefile ql/models/marketmodels/Makefile ql/models/marketmodels/browniangenerators/Makefile ql/models/marketmodels/callability/Makefile ql/models/marketmodels/correlations/Makefile ql/models/marketmodels/curvestates/Makefile ql/models/marketmodels/driftcomputation/Makefile ql/models/marketmodels/evolvers/Makefile ql/models/marketmodels/evolvers/volprocesses/Makefile ql/models/marketmodels/models/Makefile ql/models/marketmodels/pathwisegreeks/Makefile ql/models/marketmodels/products/Makefile ql/models/marketmodels/products/onestep/Makefile ql/models/marketmodels/products/multistep/Makefile ql/models/marketmodels/products/pathwise/Makefile ql/models/shortrate/Makefile ql/models/shortrate/calibrationhelpers/Makefile ql/models/shortrate/onefactormodels/Makefile ql/models/shortrate/twofactormodels/Makefile ql/models/volatility/Makefile ql/patterns/Makefile ql/pricingengines/Makefile ql/pricingengines/asian/Makefile ql/pricingengines/barrier/Makefile ql/pricingengines/basket/Makefile ql/pricingengines/bond/Makefile ql/pricingengines/capfloor/Makefile ql/pricingengines/cliquet/Makefile ql/pricingengines/credit/Makefile ql/pricingengines/forward/Makefile ql/pricingengines/inflation/Makefile ql/pricingengines/lookback/Makefile ql/pricingengines/quanto/Makefile ql/pricingengines/swap/Makefile ql/pricingengines/swaption/Makefile ql/pricingengines/vanilla/Makefile ql/processes/Makefile ql/quotes/Makefile ql/termstructures/Makefile ql/termstructures/credit/Makefile ql/termstructures/inflation/Makefile ql/termstructures/volatility/Makefile ql/termstructures/volatility/equityfx/Makefile ql/termstructures/volatility/capfloor/Makefile ql/termstructures/volatility/inflation/Makefile ql/termstructures/volatility/optionlet/Makefile ql/termstructures/volatility/swaption/Makefile ql/termstructures/yield/Makefile ql/time/Makefile ql/time/calendars/Makefile ql/time/daycounters/Makefile ql/utilities/Makefile man/Makefile m4/Makefile Docs/Makefile Examples/Makefile test-suite/Makefile" ac_config_files="$ac_config_files quantlib-config" @@ -17339,8 +18551,8 @@ case $ac_val in #( *${as_nl}*) case $ac_var in #( - *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 -$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( @@ -17370,15 +18582,15 @@ /^ac_cv_env_/b end t clear :clear - s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ + s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then if test "x$cache_file" != "x/dev/null"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 -$as_echo "$as_me: updating cache $cache_file" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 +printf "%s\n" "$as_me: updating cache $cache_file" >&6;} if test ! -f "$cache_file" || test -h "$cache_file"; then cat confcache >"$cache_file" else @@ -17392,8 +18604,8 @@ fi fi else - { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 -$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 +printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache @@ -17410,7 +18622,7 @@ for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' - ac_i=`$as_echo "$ac_i" | sed "$ac_script"` + ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR # will be set to the directory where LIBOBJS objects are built. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" @@ -17421,14 +18633,14 @@ LTLIBOBJS=$ac_ltlibobjs -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 -$as_echo_n "checking that generated files are newer than configure... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 +printf %s "checking that generated files are newer than configure... " >&6; } if test -n "$am_sleep_pid"; then # Hide warnings about reused PIDs. wait $am_sleep_pid 2>/dev/null fi - { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 -$as_echo "done" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 +printf "%s\n" "done" >&6; } if test -n "$EXEEXT"; then am__EXEEXT_TRUE= am__EXEEXT_FALSE='#' @@ -17478,8 +18690,8 @@ ac_write_fail=0 ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" -{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 -$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 +printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} as_write_fail=0 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 #! $SHELL @@ -17502,14 +18714,16 @@ # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : +as_nop=: +if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 +then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST -else +else $as_nop case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( @@ -17519,46 +18733,46 @@ fi + +# Reset variables that may have inherited troublesome values from +# the environment. + +# IFS needs to be set, to space, tab, and newline, in precisely that order. +# (If _AS_PATH_WALK were called with IFS unset, it would have the +# side effect of setting IFS to empty, thus disabling word splitting.) +# Quoting is to prevent editors from complaining about space-tab. as_nl=' ' export as_nl -# Printing a long string crashes Solaris 7 /usr/bin/printf. -as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' -as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo -as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo -# Prefer a ksh shell builtin over an external printf program on Solaris, -# but without wasting forks for bash or zsh. -if test -z "$BASH_VERSION$ZSH_VERSION" \ - && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then - as_echo='print -r --' - as_echo_n='print -rn --' -elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then - as_echo='printf %s\n' - as_echo_n='printf %s' -else - if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then - as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' - as_echo_n='/usr/ucb/echo -n' - else - as_echo_body='eval expr "X$1" : "X\\(.*\\)"' - as_echo_n_body='eval - arg=$1; - case $arg in #( - *"$as_nl"*) - expr "X$arg" : "X\\(.*\\)$as_nl"; - arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; - esac; - expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" - ' - export as_echo_n_body - as_echo_n='sh -c $as_echo_n_body as_echo' - fi - export as_echo_body - as_echo='sh -c $as_echo_body as_echo' -fi +IFS=" "" $as_nl" + +PS1='$ ' +PS2='> ' +PS4='+ ' + +# Ensure predictable behavior from utilities with locale-dependent output. +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# We cannot yet rely on "unset" to work, but we need these variables +# to be unset--not just set to an empty or harmless value--now, to +# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct +# also avoids known problems related to "unset" and subshell syntax +# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). +for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH +do eval test \${$as_var+y} \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +done + +# Ensure that fds 0, 1, and 2 are open. +if (exec 3>&0) 2>/dev/null; then :; else exec 0&1) 2>/dev/null; then :; else exec 1>/dev/null; fi +if (exec 3>&2) ; then :; else exec 2>/dev/null; fi # The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then +if ${PATH_SEPARATOR+false} :; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || @@ -17567,13 +18781,6 @@ fi -# IFS -# We need space, tab and new line, in precisely that order. Quoting is -# there to prevent editors from complaining about space-tab. -# (If _AS_PATH_WALK were called with IFS unset, it would disable word -# splitting by setting IFS to empty value.) -IFS=" "" $as_nl" - # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( @@ -17582,8 +18789,12 @@ for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + test -r "$as_dir$0" && as_myself=$as_dir$0 && break done IFS=$as_save_IFS @@ -17595,30 +18806,10 @@ as_myself=$0 fi if test ! -f "$as_myself"; then - $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi -# Unset variables that we do not need and which cause bugs (e.g. in -# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" -# suppresses any "Segmentation fault" message there. '((' could -# trigger a bug in pdksh 5.2.14. -for as_var in BASH_ENV ENV MAIL MAILPATH -do eval test x\${$as_var+set} = xset \ - && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : -done -PS1='$ ' -PS2='> ' -PS4='+ ' - -# NLS nuisances. -LC_ALL=C -export LC_ALL -LANGUAGE=C -export LANGUAGE - -# CDPATH. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH # as_fn_error STATUS ERROR [LINENO LOG_FD] @@ -17631,13 +18822,14 @@ as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi - $as_echo "$as_me: error: $2" >&2 + printf "%s\n" "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error + # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. @@ -17664,18 +18856,20 @@ { eval $1=; unset $1;} } as_unset=as_fn_unset + # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. -if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null +then : eval 'as_fn_append () { eval $1+=\$2 }' -else +else $as_nop as_fn_append () { eval $1=\$$1\$2 @@ -17687,12 +18881,13 @@ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. -if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null +then : eval 'as_fn_arith () { as_val=$(( $* )) }' -else +else $as_nop as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` @@ -17723,7 +18918,7 @@ $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X/"$0" | +printf "%s\n" X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q @@ -17745,6 +18940,10 @@ as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits + +# Determine whether it's possible to make 'echo' print without a newline. +# These variables are no longer used directly by Autoconf, but are AC_SUBSTed +# for compatibility with existing Makefiles. ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) @@ -17758,6 +18957,12 @@ ECHO_N='-n';; esac +# For backward compatibility with old third-party macros, we provide +# the shell variables $as_echo and $as_echo_n. New code should use +# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. +as_echo='printf %s\n' +as_echo_n='printf %s' + rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file @@ -17799,7 +19004,7 @@ as_dirs= while :; do case $as_dir in #( - *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" @@ -17808,7 +19013,7 @@ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$as_dir" | +printf "%s\n" X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q @@ -17870,8 +19075,8 @@ # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by QuantLib $as_me 1.21, which was -generated by GNU Autoconf 2.69. Invocation command line was +This file was extended by QuantLib $as_me 1.24, which was +generated by GNU Autoconf 2.71. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS @@ -17933,14 +19138,16 @@ Report bugs to ." _ACEOF +ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` +ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 -ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" +ac_cs_config='$ac_cs_config_escaped' ac_cs_version="\\ -QuantLib config.status 1.21 -configured by $0, generated by GNU Autoconf 2.69, +QuantLib config.status 1.24 +configured by $0, generated by GNU Autoconf 2.71, with options \\"\$ac_cs_config\\" -Copyright (C) 2012 Free Software Foundation, Inc. +Copyright (C) 2021 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." @@ -17980,15 +19187,15 @@ -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) - $as_echo "$ac_cs_version"; exit ;; + printf "%s\n" "$ac_cs_version"; exit ;; --config | --confi | --conf | --con | --co | --c ) - $as_echo "$ac_cs_config"; exit ;; + printf "%s\n" "$ac_cs_config"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift case $ac_optarg in - *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; '') as_fn_error $? "missing file argument" ;; esac as_fn_append CONFIG_FILES " '$ac_optarg'" @@ -17996,7 +19203,7 @@ --header | --heade | --head | --hea ) $ac_shift case $ac_optarg in - *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; esac as_fn_append CONFIG_HEADERS " '$ac_optarg'" ac_need_defaults=false;; @@ -18005,7 +19212,7 @@ as_fn_error $? "ambiguous option: \`$1' Try \`$0 --help' for more information.";; --help | --hel | -h ) - $as_echo "$ac_cs_usage"; exit ;; + printf "%s\n" "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; @@ -18033,7 +19240,7 @@ if \$ac_cs_recheck; then set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion shift - \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 + \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 CONFIG_SHELL='$SHELL' export CONFIG_SHELL exec "\$@" @@ -18047,7 +19254,7 @@ sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX - $as_echo "$ac_log" + printf "%s\n" "$ac_log" } >&5 _ACEOF @@ -18468,7 +19675,6 @@ "ql/experimental/exoticoptions/Makefile") CONFIG_FILES="$CONFIG_FILES ql/experimental/exoticoptions/Makefile" ;; "ql/experimental/finitedifferences/Makefile") CONFIG_FILES="$CONFIG_FILES ql/experimental/finitedifferences/Makefile" ;; "ql/experimental/forward/Makefile") CONFIG_FILES="$CONFIG_FILES ql/experimental/forward/Makefile" ;; - "ql/experimental/futures/Makefile") CONFIG_FILES="$CONFIG_FILES ql/experimental/futures/Makefile" ;; "ql/experimental/fx/Makefile") CONFIG_FILES="$CONFIG_FILES ql/experimental/fx/Makefile" ;; "ql/experimental/inflation/Makefile") CONFIG_FILES="$CONFIG_FILES ql/experimental/inflation/Makefile" ;; "ql/experimental/lattices/Makefile") CONFIG_FILES="$CONFIG_FILES ql/experimental/lattices/Makefile" ;; @@ -18584,9 +19790,9 @@ # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then - test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files - test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers - test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands + test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files + test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers + test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands fi # Have a temporary directory for convenience. Make it in the build tree @@ -18922,7 +20128,7 @@ esac || as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; esac - case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac + case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac as_fn_append ac_file_inputs " '$ac_f'" done @@ -18930,17 +20136,17 @@ # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ configure_input='Generated from '` - $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' + printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' `' by configure.' if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" - { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 -$as_echo "$as_me: creating $ac_file" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 +printf "%s\n" "$as_me: creating $ac_file" >&6;} fi # Neutralize special characters interpreted by sed in replacement strings. case $configure_input in #( *\&* | *\|* | *\\* ) - ac_sed_conf_input=`$as_echo "$configure_input" | + ac_sed_conf_input=`printf "%s\n" "$configure_input" | sed 's/[\\\\&|]/\\\\&/g'`;; #( *) ac_sed_conf_input=$configure_input;; esac @@ -18957,7 +20163,7 @@ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$ac_file" | +printf "%s\n" X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q @@ -18981,9 +20187,9 @@ case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) - ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. - ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; @@ -19045,8 +20251,8 @@ case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in *datarootdir*) ac_datarootdir_seen=yes;; *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 -$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 +printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_datarootdir_hack=' @@ -19090,9 +20296,9 @@ { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ "$ac_tmp/out"`; test -z "$ac_out"; } && - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&5 -$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' +printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&2;} rm -f "$ac_tmp/stdin" @@ -19108,20 +20314,20 @@ # if test x"$ac_file" != x-; then { - $as_echo "/* $configure_input */" \ + printf "%s\n" "/* $configure_input */" >&1 \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" } >"$ac_tmp/config.h" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then - { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 -$as_echo "$as_me: $ac_file is unchanged" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 +printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} else rm -f "$ac_file" mv "$ac_tmp/config.h" "$ac_file" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 fi else - $as_echo "/* $configure_input */" \ + printf "%s\n" "/* $configure_input */" >&1 \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ || as_fn_error $? "could not create -" "$LINENO" 5 fi @@ -19141,7 +20347,7 @@ X"$_am_arg" : 'X\(//\)[^/]' \| \ X"$_am_arg" : 'X\(//\)$' \| \ X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$_am_arg" | +printf "%s\n" X"$_am_arg" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q @@ -19161,8 +20367,8 @@ s/.*/./; q'`/stamp-h$_am_stamp_count ;; - :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 -$as_echo "$as_me: executing $ac_file commands" >&6;} + :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 +printf "%s\n" "$as_me: executing $ac_file commands" >&6;} ;; esac @@ -19188,7 +20394,7 @@ for am_mf do # Strip MF so we end up with the name of the file. - am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` + am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile which includes # dependency-tracking related rules and includes. # Grep'ing the whole file directly is not great: AIX grep has a line @@ -19200,7 +20406,7 @@ X"$am_mf" : 'X\(//\)[^/]' \| \ X"$am_mf" : 'X\(//\)$' \| \ X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$am_mf" | +printf "%s\n" X"$am_mf" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q @@ -19222,7 +20428,7 @@ $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ X"$am_mf" : 'X\(//\)$' \| \ X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X/"$am_mf" | +printf "%s\n" X/"$am_mf" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q @@ -19247,8 +20453,8 @@ (exit $ac_status); } || am_rc=$? done if test $am_rc -ne 0; then - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "Something went wrong bootstrapping makefile fragments for automatic dependency tracking. If GNU make was not used, consider re-running the configure script with MAKE=\"gmake\" (or whatever is @@ -19806,6 +21012,7 @@ esac + ltmain=$ac_aux_dir/ltmain.sh @@ -20009,8 +21216,9 @@ $ac_cs_success || as_fn_exit 1 fi if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 -$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 +printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} fi + diff -Nru quantlib-1.21/configure.ac quantlib-1.24/configure.ac --- quantlib-1.21/configure.ac 2021-01-17 13:59:11.000000000 +0000 +++ quantlib-1.24/configure.ac 2021-10-17 08:00:36.000000000 +0000 @@ -1,12 +1,12 @@ # Process this file with autoconf to produce a configure script. -AC_INIT([QuantLib], [1.21], +AC_INIT([QuantLib], [1.24], [quantlib-dev@lists.sourceforge.net], [QuantLib]) AC_PREREQ(2.62) AC_CONFIG_SRCDIR([ql/qldefines.hpp]) AC_CONFIG_AUX_DIR([config]) AC_CONFIG_HEADERS([ql/config.hpp]) -AM_INIT_AUTOMAKE([foreign nostdinc subdir-objects]) +AM_INIT_AUTOMAKE([foreign nostdinc subdir-objects tar-ustar]) AC_CONFIG_MACRO_DIR([m4]) AC_COPYRIGHT([ @@ -33,7 +33,7 @@ # Help the compiler find external software AC_ARG_WITH([boost-include], - AC_HELP_STRING([--with-boost-include=INCLUDE_PATH], + AS_HELP_STRING([--with-boost-include=INCLUDE_PATH], [Supply the location of Boost header files]), [ql_boost_include_path="`cd ${withval} 2>/dev/null && pwd`"], [ql_boost_include_path=""]) @@ -42,7 +42,7 @@ AC_SUBST([CPPFLAGS],["${CPPFLAGS} -I${ql_boost_include_path}"]) fi AC_ARG_WITH([boost-lib], - AC_HELP_STRING([--with-boost-lib=LIB_PATH], + AS_HELP_STRING([--with-boost-lib=LIB_PATH], [Supply the location of Boost libraries]), [ql_boost_lib_path="`cd ${withval} 2>/dev/null && pwd`"], [ql_boost_lib_path=""]) @@ -57,14 +57,14 @@ AC_PROG_CC AC_PROG_CXX AC_PROG_CPP -AC_PROG_LIBTOOL +LT_INIT AM_CONDITIONAL(ENABLE_STATIC, test "${enable_static}" == "yes") AC_LANG([C++]) AC_ARG_ENABLE([openmp], - AC_HELP_STRING([--enable-openmp], + AS_HELP_STRING([--enable-openmp], [If enabled, configure will try to detect and enable OpenMP support.]), [ql_openmp=$enableval], @@ -74,17 +74,13 @@ AC_SUBST([CXXFLAGS],["${CXXFLAGS} ${OPENMP_CXXFLAGS}"]) fi -# Check for mandatory features - -QL_CHECK_ASINH +# Check for C++11 support +QL_CHECK_CPP11 # Check for Boost components QL_CHECK_BOOST AM_CONDITIONAL(BOOST_UNIT_TEST_FOUND, test "x${BOOST_UNIT_TEST_LIB}" != "x") -# Check for optional features -QL_CHECK_LONG_LONG - # Check for Emacs AM_PATH_LISPDIR AM_CONDITIONAL(EMACS_FOUND, test "${EMACS}" != "no") @@ -101,7 +97,7 @@ # site configuration # AC_ARG_WITH([real], -# AC_HELP_STRING([--with-real=type], +# AS_HELP_STRING([--with-real=type], # [The given type will be used for floating-point # calculations. # In case this option is not invoked, double @@ -114,7 +110,7 @@ # floating-point calculations.])]) # AC_ARG_WITH([integer], -# AC_HELP_STRING([--with-integer=type], +# AS_HELP_STRING([--with-integer=type], # [The given type will be used for integer # calculations. At least an int is required. # In case this option is not invoked, int @@ -129,7 +125,7 @@ # is required.])]) # AC_ARG_WITH([big-integer], -# AC_HELP_STRING([--with-big-integer=type], +# AS_HELP_STRING([--with-big-integer=type], # [The given type will be used for large integer # calculations. At least 4 bytes are required. # In case this option is not invoked, long @@ -145,7 +141,7 @@ AC_ARG_ENABLE([error-lines], - AC_HELP_STRING([--enable-error-lines], + AS_HELP_STRING([--enable-error-lines], [If enabled, file and line information is added to the error messages thrown by the library.]), @@ -160,7 +156,7 @@ AC_MSG_RESULT([$ql_error_lines]) AC_ARG_ENABLE([error-functions], - AC_HELP_STRING([--enable-error-functions], + AS_HELP_STRING([--enable-error-functions], [If enabled, current function information is added to the error messages thrown by the library.]), @@ -175,7 +171,7 @@ AC_MSG_RESULT([$ql_error_functions]) AC_ARG_ENABLE([tracing], - AC_HELP_STRING([--enable-tracing], + AS_HELP_STRING([--enable-tracing], [If enabled, tracing messages might be emitted by the library depending on run-time settings. Enabling this option can degrade @@ -192,7 +188,7 @@ AC_MSG_CHECKING([whether to enable indexed coupons]) AC_ARG_ENABLE([indexed-coupons], - AC_HELP_STRING([--enable-indexed-coupons], + AS_HELP_STRING([--enable-indexed-coupons], [If enabled, indexed coupons (see the documentation) are used in floating legs. If disabled (the default), par coupons @@ -208,7 +204,7 @@ AC_MSG_CHECKING([whether to enable extra safety checks]) AC_ARG_ENABLE([extra-safety-checks], - AC_HELP_STRING([--enable-extra-safety-checks], + AS_HELP_STRING([--enable-extra-safety-checks], [If enabled, extra run-time checks are added to a few functions. This can prevent their inlining and degrade performance.]), @@ -223,13 +219,14 @@ AC_MSG_CHECKING([whether to enable sessions]) AC_ARG_ENABLE([sessions], - AC_HELP_STRING([--enable-sessions], + AS_HELP_STRING([--enable-sessions], [If enabled, singletons will return different instances for different sessions. You will have to provide and link with the library a sessionId() function in namespace QuantLib, returning a different session id for each - session.]), + session. This also implies thread-safe + Singleton initialization.]), [ql_use_sessions=$enableval], [ql_use_sessions=no]) if test "$ql_use_sessions" = "yes" ; then @@ -240,7 +237,7 @@ AC_MSG_CHECKING([whether to enable thread-safe observer pattern]) AC_ARG_ENABLE([thread-safe-observer-pattern], - AC_HELP_STRING([--enable-thread-safe-observer-pattern], + AS_HELP_STRING([--enable-thread-safe-observer-pattern], [If enabled, thread-safe version of the observer pattern will be used. You should enable it if you want to use QuantLib @@ -260,11 +257,12 @@ AC_MSG_CHECKING([whether to enable thread-safe singleton initialization]) AC_ARG_ENABLE([thread-safe-singleton-init], - AC_HELP_STRING([--enable-thread-safe-singleton-init], + AS_HELP_STRING([--enable-thread-safe-singleton-init], [If enabled, singleton initialization will be thread-safe. This requires Boost 1.58 - or later and is not supported when sessions - are enabled.]), + or later. Note that --enable-sessions + implies thread-safe initialization, + whether this is defined or not]), [ql_use_safe_singleton_init=$enableval], [ql_use_safe_singleton_init=no]) if test "$ql_use_safe_singleton_init" = "yes" ; then @@ -273,7 +271,7 @@ fi AC_MSG_RESULT([$ql_use_safe_singleton_init]) -if test "$ql_use_tsop" = "yes" || test "$ql_use_safe_singleton_init" = "yes"; then +if test "$ql_use_sessions" = "yes" || test "$ql_use_tsop" = "yes" || test "$ql_use_safe_singleton_init" = "yes"; then QL_CHECK_BOOST_VERSION_1_58_OR_HIGHER QL_CHECK_BOOST_TEST_THREAD_SIGNALS2_SYSTEM else @@ -282,7 +280,7 @@ AC_MSG_CHECKING([whether to enable parallel unit test runner]) AC_ARG_ENABLE([parallel-unit-test-runner], - AC_HELP_STRING([--enable-parallel-unit-test-runner], + AS_HELP_STRING([--enable-parallel-unit-test-runner], [If enabled, a parallel unit test runner is used to execute the C++ test suite. This will reduce the runtime on multi core CPUs.]), @@ -304,7 +302,7 @@ AC_MSG_CHECKING([whether to install examples]) AC_ARG_ENABLE([examples], - AC_HELP_STRING([--enable-examples], + AS_HELP_STRING([--enable-examples], [If enabled, examples are built and installed when "make" and "make install" are invoked. If disabled (the default) they are built @@ -316,7 +314,7 @@ AC_MSG_CHECKING([whether to install the benchmark]) AC_ARG_ENABLE([benchmark], - AC_HELP_STRING([--enable-benchmark], + AS_HELP_STRING([--enable-benchmark], [If enabled, the benchmark is built and installed when "make" and "make install" are invoked. If disabled (the default) @@ -328,7 +326,7 @@ AC_MSG_CHECKING([whether to use unity build]) AC_ARG_ENABLE([unity-build], - AC_HELP_STRING([--enable-unity-build], + AS_HELP_STRING([--enable-unity-build], [If enabled, the source files in each directory are collected into one single source file and compiled together. This can speed up the @@ -342,7 +340,7 @@ AC_MSG_CHECKING([whether to enable intraday date and daycounters]) AC_ARG_ENABLE([intraday], - AC_HELP_STRING([--enable-intraday], + AS_HELP_STRING([--enable-intraday], [If enabled, date objects will support an intraday datetime resolution down to microseconds. Strickly monotone daycounters (Actual360, @@ -362,11 +360,10 @@ AC_MSG_CHECKING([whether to enable standard smart pointers]) AC_ARG_ENABLE([std-pointers], - AC_HELP_STRING([--enable-std-pointers], + AS_HELP_STRING([--enable-std-pointers], [If enabled, std::shared_ptr and related classes and functions will be used instead - of boost::shared_ptr; this requires you to set - your compiler's standard to at least C++11. + of boost::shared_ptr. If disabled (the default) the Boost facilities are used. Note that std::shared_ptr does not check @@ -381,15 +378,12 @@ AC_MSG_CHECKING([whether to enable std::unique_ptr instead of std::auto_ptr]) AC_ARG_ENABLE([std-unique-ptr], - AC_HELP_STRING([--enable-std-unique-ptr], - [If enabled, std::unique_ptr will be used - instead of the deprecated std::auto_ptr; - this requires you to set your compiler's - standard to at least C++11. If disabled - (the default), std::auto_ptr will still - be used.]), + AS_HELP_STRING([--enable-std-unique-ptr], + [If enabled (the default), std::unique_ptr will + be used instead of the deprecated std::auto_ptr. + If disabled, std::auto_ptr will still be used.]), [ql_use_unique_ptr=$enableval], - [ql_use_unique_ptr=no]) + [ql_use_unique_ptr=yes]) if test "$ql_use_unique_ptr" = "yes" ; then AC_DEFINE([QL_USE_STD_UNIQUE_PTR],[1], [Define this if you want to replace std::auto_ptr with std::unique_ptr.]) @@ -398,12 +392,11 @@ AC_MSG_CHECKING([whether to enable std::function]) AC_ARG_ENABLE([std-function], - AC_HELP_STRING([--enable-std-function], + AS_HELP_STRING([--enable-std-function], [If enabled, std::function and std::bind will be - used instead of boost::function and boost::bind; - this requires you to set your compiler's standard - to at least C++11. If disabled (the default) the - Boost facilities are used.]), + used instead of boost::function and boost::bind. + If disabled (the default) the Boost facilities + are used.]), [ql_use_std_function=$enableval], [ql_use_std_function=no]) if test "$ql_use_std_function" = "yes" ; then @@ -415,11 +408,9 @@ AC_MSG_CHECKING([whether to enable std::tuple]) AC_ARG_ENABLE([std-tuple], - AC_HELP_STRING([--enable-std-tuple], - [If enabled, std::tuple and related - functions will be used instead - of boost::tuple; this requires you to set - your compiler's standard to at least C++11. + AS_HELP_STRING([--enable-std-tuple], + [If enabled, std::tuple and related functions + will be used instead of boost::tuple. If disabled (the default) the Boost facilities are used.]), [ql_use_std_tuple=$enableval], @@ -432,10 +423,10 @@ AC_MSG_CHECKING([whether to enable available std classes]) AC_ARG_ENABLE([std-classes], - AC_HELP_STRING([--enable-std-classes], + AS_HELP_STRING([--enable-std-classes], [This is a shortcut for --enable-std-pointers --enable-std-unique-ptr --enable-std-function - --enable-std-tuple. + --enable-std-tuple. If enabled, this supersedes any --disable option passed for the above.]), [ql_use_std_classes=$enableval], @@ -452,6 +443,24 @@ fi AC_MSG_RESULT([$ql_use_std_classes]) + +AC_MSG_CHECKING([whether to enable the Disposable class template]) +AC_ARG_ENABLE([disposable], + AS_HELP_STRING([--enable-disposable], + [If enabled, the Disposable class template will be used; + this should be no longer necessary in C++11 + and might interfere with compiler optimizations. + If disabled (the default) the class will only + be an alias for the underlying type.]), + [ql_use_disposable=$enableval], + [ql_use_disposable=no]) +if test "$ql_use_disposable" = "yes" ; then + AC_DEFINE([QL_USE_DISPOSABLE],[1], + [Define this if you want to use the Disposable class template.]) +fi +AC_MSG_RESULT([$ql_use_disposable]) + + # manual configurations for specific hosts case $host in powerpc-apple-darwin*) @@ -486,7 +495,6 @@ ql/experimental/exoticoptions/Makefile ql/experimental/finitedifferences/Makefile ql/experimental/forward/Makefile - ql/experimental/futures/Makefile ql/experimental/fx/Makefile ql/experimental/inflation/Makefile ql/experimental/lattices/Makefile diff -Nru quantlib-1.21/Contributors.txt quantlib-1.24/Contributors.txt --- quantlib-1.21/Contributors.txt 2021-01-07 08:01:55.000000000 +0000 +++ quantlib-1.24/Contributors.txt 2021-10-15 15:23:14.000000000 +0000 @@ -123,15 +123,18 @@ Chris Kenyon, Oleksandr Khomenko, Joel King, +Kevin Kirchhoff, Matt Knox, Andrew Kolesnikov, Ralf Konrad, +Philip Kovacs, Silakhdar Krikeb, Nathan Kruck, Yan Kuang, Werner Kuerzinger, Oleg Kulkov, Allen Kuo, +Mickael Anas Laaouini, Paul Laderoute, Yasmine Lahlou, Alix Lassauzet, @@ -160,12 +163,15 @@ Francesca Mariani, Slava Mazur, Paolo Mazzocchi, +Magnus Mencke, Enrico Michelotti, Andre Miemiec, Raso Mirko, Radu Mondescu, +Bryte Morio, Bart Mosley, Tiziano Müller, +Prince Nanda, Dmitri Nesteruk, Billy Ng, Bojan Nikolic, @@ -174,6 +180,8 @@ Nikolai Nowaczyk, Adrian O'Neill, Andrea Odetti, +Cay Oest, +Anubhav Pandey, Mike Parker, Giorgio Pazmandi, Guillaume Pealat, @@ -209,6 +217,7 @@ Sebastian Schlenkrich, Peter Schmitteckert, Ralph Schreyer, +Leander Schulten, David Schwartz, Benjamin Schwendinger, Carlos Fidel Selva Ochoa, @@ -217,6 +226,7 @@ Michael Sharpe, Kirill Shemyakin, Eugene Shevkoplyas, +Mohammad Shojatalab, Piotr Siejda, Matthias Siemering, Enrico Sirola, diff -Nru quantlib-1.21/debian/changelog quantlib-1.24/debian/changelog --- quantlib-1.21/debian/changelog 2021-01-20 13:20:30.000000000 +0000 +++ quantlib-1.24/debian/changelog 2021-10-19 12:31:54.000000000 +0000 @@ -1,3 +1,49 @@ +quantlib (1.24-1) unstable; urgency=medium + + * New upstream release + + * debian/control: Update Standards-Version: to current version + + -- Dirk Eddelbuettel Tue, 19 Oct 2021 07:31:54 -0500 + +quantlib (1.23-2) unstable; urgency=medium + + * Simple rebuild for unstable following Debian 11 release + + -- Dirk Eddelbuettel Sun, 15 Aug 2021 07:04:30 -0500 + +quantlib (1.23-1.2004.1) focal; urgency=medium + + * PPA build for Ubuntu 20.04 ("focal") + + -- Dirk Eddelbuettel Wed, 14 Jul 2021 09:25:39 -0500 + +quantlib (1.23-1) experimental; urgency=medium + + * New upstream release (to experimental during freeze) + + * debian/control: Update Standards-Version: to current version + + -- Dirk Eddelbuettel Wed, 14 Jul 2021 06:46:01 -0500 + +quantlib (1.22-1.2004.1) focal; urgency=medium + + * PPA build for Ubuntu 20.04 ("focal") + + -- Dirk Eddelbuettel Thu, 15 Apr 2021 12:04:44 -0500 + +quantlib (1.22-1) experimental; urgency=medium + + * New upstream release, upload to experimental during (soft) freeze + + -- Dirk Eddelbuettel Thu, 15 Apr 2021 08:36:17 -0500 + +quantlib (1.21-1.2004.1) focal; urgency=medium + + * PPA build for Ubuntu 20.04 ("focal") + + -- Dirk Eddelbuettel Wed, 20 Jan 2021 08:52:59 -0600 + quantlib (1.21-1) unstable; urgency=medium * New upstream release diff -Nru quantlib-1.21/debian/control quantlib-1.24/debian/control --- quantlib-1.21/debian/control 2021-01-20 13:20:30.000000000 +0000 +++ quantlib-1.24/debian/control 2021-10-19 12:31:24.000000000 +0000 @@ -3,7 +3,7 @@ Priority: optional Maintainer: Dirk Eddelbuettel Build-Depends: debhelper-compat (= 11), autoconf, automake, texinfo, libboost-dev, libboost-test-dev, libboost-timer-dev, libboost-system-dev, g++ (>= 4:5.2), dh-autoreconf -Standards-Version: 4.5.0 +Standards-Version: 4.6.0 Vcs-Browser: https://salsa.debian.org/edd/quantlib Vcs-Git: https://salsa.debian.org/edd/quantlib.git Homepage: https://www.quantlib.org diff -Nru quantlib-1.21/Docs/Makefile.in quantlib-1.24/Docs/Makefile.in --- quantlib-1.21/Docs/Makefile.in 2021-01-17 14:00:14.000000000 +0000 +++ quantlib-1.24/Docs/Makefile.in 2021-10-17 08:02:16.000000000 +0000 @@ -1,7 +1,7 @@ -# Makefile.in generated by automake 1.16.3 from Makefile.am. +# Makefile.in generated by automake 1.16.5 from Makefile.am. # @configure_input@ -# Copyright (C) 1994-2020 Free Software Foundation, Inc. +# Copyright (C) 1994-2021 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -140,7 +140,10 @@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ +CPP11_CXXFLAGS = @CPP11_CXXFLAGS@ CPPFLAGS = @CPPFLAGS@ +CSCOPE = @CSCOPE@ +CTAGS = @CTAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ @@ -159,6 +162,7 @@ EGREP = @EGREP@ EMACS = @EMACS@ EMACSLOADPATH = @EMACSLOADPATH@ +ETAGS = @ETAGS@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GREP = @GREP@ @@ -197,6 +201,7 @@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PDFLATEX = @PDFLATEX@ +PTHREAD_CXXFLAGS = @PTHREAD_CXXFLAGS@ RANLIB = @RANLIB@ SED = @SED@ SET_MAKE = @SET_MAKE@ @@ -249,6 +254,7 @@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ +runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ @@ -314,7 +320,6 @@ cscope cscopelist: - distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am diff -Nru quantlib-1.21/Docs/pages/config.docs quantlib-1.24/Docs/pages/config.docs --- quantlib-1.21/Docs/pages/config.docs 2019-12-05 14:16:42.000000000 +0000 +++ quantlib-1.24/Docs/pages/config.docs 2021-10-15 07:23:22.000000000 +0000 @@ -22,7 +22,7 @@ or undefining such macros triggers variations in some library functionality. - Under a Linux/Unix system, they are (un)set by configure; + Under a Linux/Unix system, they are (un)set by `configure`; run \code ./configure --help @@ -30,7 +30,7 @@ for a list of corresponding command-line options. Under a Windows system, they must be (un)defined by editing the - file and commenting or uncommenting the + file `` and commenting or uncommenting the relevant lines. Such macros include: @@ -38,7 +38,6 @@ \code #define QL_ERROR_FUNCTIONS \endcode - If defined, function information is added to the error messages thrown by the library. Undefined by default. @@ -51,7 +50,6 @@ \code #define QL_ENABLE_TRACING \endcode - If enabled, tracing messages might be emitted by the library depending on run-time settings. Enabling this option can degrade performance. Undefined by default. @@ -74,49 +72,79 @@ \endcode If defined, singletons will return different instances for different sessions. You will have to provide and link with the - library a sessionId() function in namespace QuantLib, returning a - different session id for each session. Undefined by default. + library a `sessionId()` function in namespace QuantLib, returning a + different session id for each session. This also implies thread-safe + Singleton initialization. Undefined by default. \code #define QL_ENABLE_THREAD_SAFE_OBSERVER_PATTERN \endcode If defined, a thread-safe (but less performant) version of the - observer pattern will be used. You should define it if you want to - use QuantLib via the SWIG layer within the JVM or .NET eco system + observer pattern is used. You should define it if you want to + use %QuantLib via the SWIG layer within the JVM or .NET eco system or any environment with an async garbage collector. Undefined by - default. + default. If defined together with `QL_USE_STD_SHARED_PTR`, it requires + at least C++17. \code #define QL_ENABLE_SINGLETON_THREAD_SAFE_INIT \endcode - Define this to make Singleton initialization thread-safe. - Undefined by default. Not compatible with multiple sessions. + Define this to make `Singleton` initialization thread-safe. + Undefined by default. Not compatible with `QL_ENABLE_THREAD_SAFE_OBSERVER_PATTERN`. + Note that defining QL_ENABLE_SESSIONS implies thread-safe initialization, + whether this is defined or not. \code #define QL_HIGH_RESOLUTION_DATE \endcode - If defined, date objects will support an intraday datetime - resolution down to microseconds. Strickly monotone daycounters - (Actual360, Actual365Fixed and ActualActual) will take the + If defined, date objects support an intraday datetime + resolution down to microseconds. Strictly monotone daycounters + (`Actual360`, `Actual365Fixed` and `ActualActual`) will take the additional information into account and allow for accurate intraday pricing. If disabled (the default) the smallest - resolution of date objects will be a single day. Intraday + resolution of date objects is a single day. Intraday datetime resolution is experimental. \code #define QL_USE_STD_SHARED_PTR \endcode - If defined, std::shared_ptr and related classes and functions will - be used instead of boost::shared_ptr; this requires you to set - your compiler's standard to at least C++11. If disabled (the - default) the Boost facilities are used. Note that std::shared_ptr + If defined, `std::shared_ptr` and related classes and functions are + used instead of `boost::shared_ptr`. If disabled (the + default) the Boost facilities are used. Note that `std::shared_ptr` does not check access and can cause segmentation faults. \code + #define QL_USE_STD_UNIQUE_PTR + \endcode + If defined (the default), `std::unique_ptr` is + used instead of `std::auto_ptr`. If disabled, `std::auto_ptr` is used. + + \code + #define QL_USE_STD_FUNCTION + \endcode + If defined, `std::function`, `std::bind` and related classes and functions + are used instead of `boost::function` and `boost::bind`. If disabled (the + default) the Boost facilities are used. + + \code + #define QL_USE_STD_TUPLE + \endcode + If defined, `std::tuple` and related classes and functions + are used instead of `boost::tuple`. If disabled (the + default) the Boost facilities are used. + + \code + #define QL_USE_DISPOSABLE + \endcode + If defined, the old `Disposable` class template is used; this + should be no longer necessary in C++11 and might interfere with + compiler optimizations. If disabled (the default) `Disposable` is + still available but is just an alias to `T`. + + \code #define QL_ENABLE_PARALLEL_UNIT_TEST_RUNNER \endcode Define this to enable the parallel unit test runner. Undefined by default. - */ diff -Nru quantlib-1.21/Docs/pages/history.docs quantlib-1.24/Docs/pages/history.docs --- quantlib-1.21/Docs/pages/history.docs 2021-01-07 08:01:55.000000000 +0000 +++ quantlib-1.24/Docs/pages/history.docs 2021-10-15 15:23:14.000000000 +0000 @@ -17,7 +17,236 @@ /*! \page history Version history - Release 1.21 - January 2021 + Release 1.24 - October 2021 + + PORTABILITY + - Overhauled the CMake build system (thanks to Philip Kovacs). Among + other things, it now allows to specify the available configuration + options from the `cmake` invocation and adds the required Boost + libraries accordingly. + + INSTRUMENTS + - Avoid callable-bond mispricing when a call date is close but not equal + to a coupon date (thanks to Ralf Konrad for the fix and to GitHub user + aichao for the analysis). + See for details. + - A new `RiskyBondEngine` is available for bonds (thanks to Lew Wei + Hao). It prices bonds based on a risk-free discount cure and a + default-probability curve used to assess the probability of each + coupon payment. It makes accessible to all bonds the calculations + previously available in the experimental `RiskyBond` class. + + CASHFLOWS + - The choice between par and indexed coupons was moved to + `IborCouponPricer` (thanks to Peter Caspers). This also made it + possible to override the choice locally when building a + `VanillaSwap` or a `SwapRateHelper`, so that coupons with both + behaviors can now be used at the same time. + + TERM STRUCTURES + - Cross-currency basis swap rate helpers now support both + constant-notional and marked-to-market swaps (thanks to Marcin + Rybacki). + + DATE/TIME + - Added Chilean calendar (thanks to Anubhav Pandey). + - Added new `ThirdWednesdayInclusive` date-generation rule that also + adjusts start and end dates (thanks to Lew Wei Hao). + + PATTERNS + - Overhauled `Singleton` implementation (thanks to Peter Caspers). + Singletons are now initialized in a thread-safe way when sessions + are enabled, global singletons (that is, independent of sessions) + were made available, and static initialization was made safer. + + TEST SUITE + - Sped up some of the longer-running tests (thanks to Mohammad Shojatalab). + + DEPRECATED FEATURES + - Deprecated default constructor for the U.S. calendar; the desired + market should now be passed explicitly. + - Deprecated the `nominalTermStructure` method and the corresponding + data member in inflation term structures. Any object needing the + nominal term structure should have it passed explicitly. + - Deprecated the `termStructure_` data member in + `BlackCalibrationHelper`. It you're inheriting from + `BlackCalibrationHelper` and need it, declare it in your derived + class. + - Deprecated the `createAtParCoupons`, `createIndexedCoupons` and + `usingAtParCoupons` methods of `IborCoupon`, now moved to a new + `IborCoupon::Settings` singleton (thanks to Philip Kovacs). + - Deprecated the `conversionType` and `baseCurrency` static data + members of `Money`, now moved to a new `Money::Settings` singleton + (thanks to Philip Kovacs). + - Removed features deprecated in version 1.19: the `BMAIndex` + constructor taking a calendar, the `AmericanCondition` and + `ShoutCondition` constructors taking an option type and strike, the + `CurveDependentStepCondition` class and the + `StandardCurveDependentStepCondition` typedef, the + `BlackCalibrationHelper` constructor taking a yield term structure, + the various inflation term structure constructors taking a yield + term structure, the various yield term constructors taking a vector + of jumps but not specifying a reference date. + + Thanks go also to Mickael Anas Laaouini, Jack Gillett, Bojan Nikolic + and Klaus Spanderen for smaller fixes, enhancements and bug reports. + + Release 1.23 - July 14th, 2021 + + PORTABILITY + - On Mac OS, the `-std=c++11` flag is now added automatically when + needed. This applies to both `configure` and `cmake` (thanks to + Leander Schulten). + - We now assume that the compiler supports Boost::uBLAS and no longer + check for it in configure. (The check was originally introduced for + versions of gcc before 4.x, which don't support C++ anyway.) + Please let us know if this causes problems on some systems. + - The `Period`, `InterestRate` and `InterestRateIndex` classes are now + visualized more clearly in the Visual Studio debugger (thanks to + Francois Botha). + + CASHFLOWS + - Year-on-year and CPI legs are now set a default coupon pricer. In + most cases, this removes the need for setting it explicitly. + - Add new `ZeroInflationCashFlow` class, used in zero-coupon inflation + swaps (thanks to Ralf Konrad). + + CURRENCIES + - Added custom constructor that allows to create bespoke currencies + not already included in the library (thanks to Marcin Rybacki). + + DATE/TIME + - Fixed implementation of U.S. 30/360 convention (the old one is still + available as 30/360 NASD). + - The 30/360 ISDA convention can now take the termination date as a + constructor argument and use it to adjust the calculation properly. + - Added the 30/360 ISMA convention; the Bond-Basis convention is now + an alias to the former. + - The 30/360 German convention was renamed to ISDA; "German" remains + as an alias. + - Added new Canadian holiday (National Day for Truth and + Reconciliation) established in 2021 (thanks to GitHub user `qiubill` + for the heads-up). + - Added new U.S. holiday (Juneteenth) established in 2021. + - Added new Platinum Jubilee U.K. holiday for 2022 (thanks to Ioannis + Rigopoulos for the heads-up.) + - Added missing Christmas Eve holiday to Norwegian calendar (thanks to + Prince Nanda). + + INDEXES + - Added ESTR index (thanks to Magnus Mencke). + + INSTRUMENTS + - Added zero-coupon swap (thanks to Marcin Rybacki). + - The `Type` enumeration defined in several swap classes was moved to + their base `Swap` class. + - Fixed sign of theta in experimental Kirk engine for spread options + (thanks to Xu Ruilong for the heads-up). + + PROCESSES + - Improved discretization of Cox-Ingersoll-Ross process to avoid + occasional divergence (thanks to Magnus Mencke). + + DEPRECATED FEATURES + - Deprecated default constructor for actual/actual and 30/360 day + counters; the desired convention should now be passed explicitly. + - Removed features deprecated in version 1.18: the + `CalibrationHelperBase` typedef (now `CalibrationHelper`), some + overloads of the `CalibratedModel::calibrate` and + `CalibratedModel::value` methods, the constructors of + `PiecewiseYieldCurve` and `PiecewiseDefaultCurve` taking an + `accuracy` parameter, the constructors of `BondHelper`, + `FixedRateBondHelper` and `CPIBondHelper` taking a boolean + `useCleanPrice` parameter, the `BondHelper::useCleanPrice()` method, + and the non-static `Calendar::holidayList` method. + + Thanks go also to Francis Duffy, Kevin Kirchhoff, Magnus Mencke and + Klaus Spanderen for smaller fixes, enhancements and bug reports. + + Release 1.22 - April 15th, 2021 + + PORTABILITY + - As previously announced, this release drops support for Visual + C++ 2012. VC++ 2013 or later is now required. + - The `Date` and `Array` classes are now visualized more clearly in + the Visual Studio debugger (thanks to Francois Botha). + + LANGUAGE STANDARD + - QuantLib now uses the C++11 standard and no longer compiles in C++03 + mode. As before, it can be compiled with later versions of the + standard. For details on the C++11 features used, see the pull + requests marked "C++11 modernization" at the above link; for + information on possible problems, see + . + + CASHFLOWS + - Revised and tested the `SubPeriodCoupon` class (thanks to Marcin + Rybacki). The class was moved out of the `ql/experimental` folder + and its interface can now be considered stable. + - Add simple averaging to overnight-index coupons in addition to the + existing compound averaging (thanks to Marcin Rybacki). + - Fixed accrual calculation for inflation coupon when trading + ex-coupon (thanks to GitHub user `bachhani`). + + CURRENCIES + - Added the Nigerian Naira (thanks to Bryte Morio). + + DATE/TIME + - Fixed actual/actual (ISMA) day counter calculation for long/short + final periods (thanks to Francois Botha). + - Updated a couple of changed rules for New Zealand calendar (thanks + to Paul Giltinan). + + INDEXES + - Added `hasHistoricalFixing` inspector to `Index` class to check if + the fixing for a given past date is available (thanks to Ralf + Konrad). + + INSTRUMENTS + - Added new-style finite-difference engine for shout options (thanks + to Klaus Spanderen). In the case of dividend shout options, an + escrowed dividend model is used. + - Revised the `OvernightIndexFutures` class. The class was moved out + of the `ql/experimental` folder and its interface can now be + considered stable. + - Added an overloaded constructor for Asian options that takes all + past fixings and thus allows to reprice them correctly when the + evaluation date changes (thanks to Jack Gillett). + - Added support for seasoned geometric Asian options to the Heston + engine (thanks to Jack Gillett). + + PATTERNS + - Faster implementation of the `Observable` class in the thread-safe + case (thanks to Klaus Spanderen). + + TERM STRUCTURES + - Added experimental rate helper for constant-notional cross-currency + basis swaps (thanks to Marcin Rybacki). + - Added volatility type and displacements to year-on-year inflation + volatility surfaces (thanks to Peter Caspers). + + DEPRECATED FEATURES + - Removed features deprecated in version 1.17: the `Callability::Type` + typedef (now `Bond::Price`), the `FdmOrnsteinUhlenbackOp` typedef + (now correctly spelled as `FdmOrnsteinUhlenbeckOp`, and a number of + old-style finite-difference engines (`FDAmericanEngine`, + `FDBermudanEngine`, `FDDividendAmericanEngine` and its variants, + `FDDividendEuropeanEngine` and its variants, and `FDEuropeanEngine`) + all replaced by the `FdBlackScholesVanillaEngine` class. + - Deprecated the old-style finite difference engines for shout + options; they are now replaced by the new `FDDividendShoutEngine` + class. + - Deprecated a few unused parts of the old-style finite-differences + framework: the `AmericanCondition` class, the `OneFactorOperator` + typedef, and the `FDAmericanCondition` class. + + TEST SUITE + - Reduced the run time for the longest-running test cases. + + Thanks go also to Francis Duffy and Cay Oest for smaller fixes, + enhancements and bug reports. + + Release 1.21 - January 20th, 2021 PORTABILITY - As previously announced, this is the last release to support diff -Nru quantlib-1.21/Docs/quantlib.doxy quantlib-1.24/Docs/quantlib.doxy --- quantlib-1.21/Docs/quantlib.doxy 2021-01-07 08:01:55.000000000 +0000 +++ quantlib-1.24/Docs/quantlib.doxy 2021-10-15 07:23:22.000000000 +0000 @@ -1,4 +1,4 @@ -# Doxyfile 1.9.0 +# Doxyfile 1.9.2 #--------------------------------------------------------------------------- # Project related configuration options @@ -12,7 +12,6 @@ CREATE_SUBDIRS = NO ALLOW_UNICODE_NAMES = NO OUTPUT_LANGUAGE = English -OUTPUT_TEXT_DIRECTION = None BRIEF_MEMBER_DESC = YES REPEAT_BRIEF = YES ABBREVIATE_BRIEF = @@ -75,6 +74,7 @@ CASE_SENSE_NAMES = NO HIDE_SCOPE_NAMES = YES HIDE_COMPOUND_REFERENCE= NO +SHOW_HEADERFILE = YES SHOW_INCLUDE_FILES = YES SHOW_GROUPED_MEMB_INC = NO FORCE_LOCAL_INCLUDES = NO @@ -104,6 +104,7 @@ WARNINGS = YES WARN_IF_UNDOCUMENTED = NO WARN_IF_DOC_ERROR = YES +WARN_IF_INCOMPLETE_DOC = NO WARN_NO_PARAMDOC = NO WARN_AS_ERROR = YES WARN_FORMAT = "$file:$line: $text" @@ -193,6 +194,7 @@ ECLIPSE_DOC_ID = org.doxygen.Project DISABLE_INDEX = NO GENERATE_TREEVIEW = NO +FULL_SIDEBAR = NO ENUM_VALUES_PER_LINE = 4 TREEVIEW_WIDTH = 250 EXT_LINKS_IN_WINDOW = NO @@ -201,6 +203,7 @@ FORMULA_TRANSPARENT = YES FORMULA_MACROFILE = USE_MATHJAX = YES +MATHJAX_VERSION = MathJax_2 MATHJAX_FORMAT = HTML-CSS MATHJAX_RELPATH = https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/ MATHJAX_EXTENSIONS = @@ -231,7 +234,6 @@ USE_PDFLATEX = YES LATEX_BATCHMODE = NO LATEX_HIDE_INDICES = NO -LATEX_SOURCE_CODE = NO LATEX_BIB_STYLE = plain LATEX_TIMESTAMP = NO LATEX_EMOJI_DIRECTORY = @@ -244,7 +246,6 @@ RTF_HYPERLINKS = NO RTF_STYLESHEET_FILE = RTF_EXTENSIONS_FILE = -RTF_SOURCE_CODE = NO #--------------------------------------------------------------------------- # Configuration options related to the man page output #--------------------------------------------------------------------------- @@ -265,7 +266,6 @@ #--------------------------------------------------------------------------- GENERATE_DOCBOOK = NO DOCBOOK_OUTPUT = docbook -DOCBOOK_PROGRAMLISTING = NO #--------------------------------------------------------------------------- # Configuration options for the AutoGen Definitions output #--------------------------------------------------------------------------- diff -Nru quantlib-1.21/Examples/BasketLosses/BasketLosses.cpp quantlib-1.24/Examples/BasketLosses/BasketLosses.cpp --- quantlib-1.21/Examples/BasketLosses/BasketLosses.cpp 2020-10-14 21:13:40.000000000 +0000 +++ quantlib-1.24/Examples/BasketLosses/BasketLosses.cpp 2021-10-15 15:23:14.000000000 +0000 @@ -18,7 +18,7 @@ */ #include -#ifdef BOOST_MSVC +#if !defined(BOOST_ALL_NO_LIB) && defined(BOOST_MSVC) # include #endif #include @@ -32,20 +32,16 @@ #include #include #include - -#include - #include #include #include using namespace std; using namespace QuantLib; -using namespace boost::assign; #if defined(QL_ENABLE_SESSIONS) namespace QuantLib { - ThreadKey sessionId() { return 0; } + ThreadKey sessionId() { return {}; } } #endif @@ -67,20 +63,16 @@ SET UP BASKET PORTFOLIO -------------------------------------------------------------- */ // build curves and issuers into a basket of ten names - std::vector hazardRates; - hazardRates += - // 0.01, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9; - 0.001, 0.01, 0.02, 0.03, 0.04, 0.05, 0.06, 0.07, 0.08, 0.09; - // 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01; + std::vector hazardRates = { + 0.001, 0.01, 0.02, 0.03, 0.04, 0.05, 0.06, 0.07, 0.08, 0.09 + }; std::vector names; for(Size i=0; i(i)); + names.push_back(std::string("Acme") + std::to_string(i)); std::vector > defTS; - for(Size i=0; i( - ext::make_shared(0, TARGET(), hazardRates[i], - Actual365Fixed()))); + for (double& hazardRate : hazardRates) { + defTS.emplace_back( + ext::make_shared(0, TARGET(), hazardRate, Actual365Fixed())); defTS.back()->enableExtrapolation(); } std::vector issuers; @@ -90,7 +82,7 @@ EURCurrency(), QuantLib::SeniorSec, Period(), 1. // amount threshold ), defTS[i])); - issuers.push_back(Issuer(curves)); + issuers.emplace_back(curves); } ext::shared_ptr thePool = ext::make_shared(); @@ -248,8 +240,8 @@ // Base Correlation model set up to test cocherence with base LHP model std::vector bcTenors; - bcTenors.push_back(Period(1, Years)); - bcTenors.push_back(Period(5, Years)); + bcTenors.emplace_back(1, Years); + bcTenors.emplace_back(5, Years); std::vector bcLossPercentages; bcLossPercentages.push_back(0.03); bcLossPercentages.push_back(0.12); @@ -257,19 +249,19 @@ // std::vector > corr1Y; // 3% - corr1Y.push_back(Handle(ext::shared_ptr( - new SimpleQuote(fctrsWeights[0][0] * fctrsWeights[0][0])))); + corr1Y.emplace_back( + ext::shared_ptr(new SimpleQuote(fctrsWeights[0][0] * fctrsWeights[0][0]))); // 12% - corr1Y.push_back(Handle(ext::shared_ptr( - new SimpleQuote(fctrsWeights[0][0] * fctrsWeights[0][0])))); + corr1Y.emplace_back( + ext::shared_ptr(new SimpleQuote(fctrsWeights[0][0] * fctrsWeights[0][0]))); correls.push_back(corr1Y); std::vector > corr2Y; // 3% - corr2Y.push_back(Handle(ext::shared_ptr( - new SimpleQuote(fctrsWeights[0][0] * fctrsWeights[0][0])))); + corr2Y.emplace_back( + ext::shared_ptr(new SimpleQuote(fctrsWeights[0][0] * fctrsWeights[0][0]))); // 12% - corr2Y.push_back(Handle(ext::shared_ptr( - new SimpleQuote(fctrsWeights[0][0] * fctrsWeights[0][0])))); + corr2Y.emplace_back( + ext::shared_ptr(new SimpleQuote(fctrsWeights[0][0] * fctrsWeights[0][0]))); correls.push_back(corr2Y); ext::shared_ptr > correlSurface( diff -Nru quantlib-1.21/Examples/BasketLosses/CMakeLists.txt quantlib-1.24/Examples/BasketLosses/CMakeLists.txt --- quantlib-1.21/Examples/BasketLosses/CMakeLists.txt 2021-01-17 14:16:46.000000000 +0000 +++ quantlib-1.24/Examples/BasketLosses/CMakeLists.txt 2021-10-17 10:16:47.000000000 +0000 @@ -1,2 +1,5 @@ add_executable(BasketLosses BasketLosses.cpp) -target_link_libraries(BasketLosses ${QL_LINK_LIBRARY}) +target_link_libraries(BasketLosses ql_library ${QL_EXAMPLES_LIBRARIES}) +if (QL_INSTALL_EXAMPLES) + install(TARGETS BasketLosses RUNTIME DESTINATION ${QL_INSTALL_EXAMPLESDIR}) +endif() diff -Nru quantlib-1.21/Examples/BermudanSwaption/BermudanSwaption.cpp quantlib-1.24/Examples/BermudanSwaption/BermudanSwaption.cpp --- quantlib-1.21/Examples/BermudanSwaption/BermudanSwaption.cpp 2020-10-14 21:13:40.000000000 +0000 +++ quantlib-1.24/Examples/BermudanSwaption/BermudanSwaption.cpp 2021-10-15 15:23:14.000000000 +0000 @@ -20,7 +20,7 @@ */ #include -#ifdef BOOST_MSVC +#if !defined(BOOST_ALL_NO_LIB) && defined(BOOST_MSVC) # include #endif #include @@ -49,7 +49,7 @@ #if defined(QL_ENABLE_SESSIONS) namespace QuantLib { - ThreadKey sessionId() { return 0; } + ThreadKey sessionId() { return {}; } } #endif @@ -121,7 +121,7 @@ BusinessDayConvention floatingLegConvention = ModifiedFollowing; DayCounter fixedLegDayCounter = Thirty360(Thirty360::European); Frequency floatingLegFrequency = Semiannual; - VanillaSwap::Type type = VanillaSwap::Payer; + Swap::Type type = Swap::Payer; Rate dummyFixedRate = 0.03; ext::shared_ptr indexSixMonths(new Euribor6M(rhTermStructure)); @@ -166,11 +166,11 @@ // defining the swaptions to be used in model calibration std::vector swaptionMaturities; - swaptionMaturities.push_back(Period(1, Years)); - swaptionMaturities.push_back(Period(2, Years)); - swaptionMaturities.push_back(Period(3, Years)); - swaptionMaturities.push_back(Period(4, Years)); - swaptionMaturities.push_back(Period(5, Years)); + swaptionMaturities.emplace_back(1, Years); + swaptionMaturities.emplace_back(2, Years); + swaptionMaturities.emplace_back(3, Years); + swaptionMaturities.emplace_back(4, Years); + swaptionMaturities.emplace_back(5, Years); std::vector > swaptions; diff -Nru quantlib-1.21/Examples/BermudanSwaption/BermudanSwaption.vcxproj quantlib-1.24/Examples/BermudanSwaption/BermudanSwaption.vcxproj --- quantlib-1.21/Examples/BermudanSwaption/BermudanSwaption.vcxproj 2021-01-17 14:16:46.000000000 +0000 +++ quantlib-1.24/Examples/BermudanSwaption/BermudanSwaption.vcxproj 2021-10-17 10:16:47.000000000 +0000 @@ -542,9 +542,6 @@ - - - {ad0a27da-91da-46a2-acbd-296c419ed3aa} false diff -Nru quantlib-1.21/Examples/BermudanSwaption/BermudanSwaption.vcxproj.filters quantlib-1.24/Examples/BermudanSwaption/BermudanSwaption.vcxproj.filters --- quantlib-1.21/Examples/BermudanSwaption/BermudanSwaption.vcxproj.filters 2021-01-17 14:16:46.000000000 +0000 +++ quantlib-1.24/Examples/BermudanSwaption/BermudanSwaption.vcxproj.filters 2021-10-17 10:16:47.000000000 +0000 @@ -19,7 +19,4 @@ Source Files - - - \ No newline at end of file diff -Nru quantlib-1.21/Examples/BermudanSwaption/CMakeLists.txt quantlib-1.24/Examples/BermudanSwaption/CMakeLists.txt --- quantlib-1.21/Examples/BermudanSwaption/CMakeLists.txt 2021-01-17 14:16:46.000000000 +0000 +++ quantlib-1.24/Examples/BermudanSwaption/CMakeLists.txt 2021-10-17 10:16:47.000000000 +0000 @@ -1,2 +1,6 @@ add_executable(BermudanSwaption BermudanSwaption.cpp) -target_link_libraries(BermudanSwaption ${QL_LINK_LIBRARY}) \ No newline at end of file +target_link_libraries(BermudanSwaption ql_library ${QL_EXAMPLES_LIBRARIES}) +if (QL_INSTALL_EXAMPLES) + install(TARGETS BermudanSwaption RUNTIME DESTINATION ${QL_INSTALL_EXAMPLESDIR}) +endif() + diff -Nru quantlib-1.21/Examples/Bonds/Bonds.cpp quantlib-1.24/Examples/Bonds/Bonds.cpp --- quantlib-1.21/Examples/Bonds/Bonds.cpp 2020-10-14 21:13:40.000000000 +0000 +++ quantlib-1.24/Examples/Bonds/Bonds.cpp 2021-10-15 15:23:14.000000000 +0000 @@ -23,7 +23,7 @@ */ #include -#ifdef BOOST_MSVC +#if !defined(BOOST_ALL_NO_LIB) && defined(BOOST_MSVC) # include #endif #include @@ -49,7 +49,7 @@ #if defined(QL_ENABLE_SESSIONS) namespace QuantLib { - ThreadKey sessionId() { return 0; } + ThreadKey sessionId() { return {}; } } #endif @@ -163,8 +163,8 @@ }; std::vector< ext::shared_ptr > quote; - for (Size i=0; i cp(new SimpleQuote(marketQuotes[i])); + for (double marketQuote : marketQuotes) { + ext::shared_ptr cp(new SimpleQuote(marketQuote)); quote.push_back(cp); } diff -Nru quantlib-1.21/Examples/Bonds/Bonds.vcxproj quantlib-1.24/Examples/Bonds/Bonds.vcxproj --- quantlib-1.21/Examples/Bonds/Bonds.vcxproj 2021-01-17 14:16:46.000000000 +0000 +++ quantlib-1.24/Examples/Bonds/Bonds.vcxproj 2021-10-17 10:16:47.000000000 +0000 @@ -542,9 +542,6 @@ - - - {ad0a27da-91da-46a2-acbd-296c419ed3aa} false diff -Nru quantlib-1.21/Examples/Bonds/Bonds.vcxproj.filters quantlib-1.24/Examples/Bonds/Bonds.vcxproj.filters --- quantlib-1.21/Examples/Bonds/Bonds.vcxproj.filters 2021-01-17 14:16:46.000000000 +0000 +++ quantlib-1.24/Examples/Bonds/Bonds.vcxproj.filters 2021-10-17 10:16:47.000000000 +0000 @@ -19,7 +19,4 @@ Source Files - - - \ No newline at end of file diff -Nru quantlib-1.21/Examples/Bonds/CMakeLists.txt quantlib-1.24/Examples/Bonds/CMakeLists.txt --- quantlib-1.21/Examples/Bonds/CMakeLists.txt 2021-01-17 14:16:46.000000000 +0000 +++ quantlib-1.24/Examples/Bonds/CMakeLists.txt 2021-10-17 10:16:47.000000000 +0000 @@ -1,2 +1,6 @@ add_executable(Bonds Bonds.cpp) -target_link_libraries(Bonds ${QL_LINK_LIBRARY}) \ No newline at end of file +target_link_libraries(Bonds ql_library ${QL_EXAMPLES_LIBRARIES}) +if (QL_INSTALL_EXAMPLES) + install(TARGETS Bonds RUNTIME DESTINATION ${QL_INSTALL_EXAMPLESDIR}) +endif() + diff -Nru quantlib-1.21/Examples/CallableBonds/CallableBonds.cpp quantlib-1.24/Examples/CallableBonds/CallableBonds.cpp --- quantlib-1.21/Examples/CallableBonds/CallableBonds.cpp 2020-10-14 21:13:40.000000000 +0000 +++ quantlib-1.24/Examples/CallableBonds/CallableBonds.cpp 2021-10-15 15:23:14.000000000 +0000 @@ -22,7 +22,7 @@ */ #include -#ifdef BOOST_MSVC +#if !defined(BOOST_ALL_NO_LIB) && defined(BOOST_MSVC) # include #endif #include @@ -42,7 +42,7 @@ #if defined(QL_ENABLE_SESSIONS) namespace QuantLib { - ThreadKey sessionId() { return 0; } + ThreadKey sessionId() { return {}; } } #endif diff -Nru quantlib-1.21/Examples/CallableBonds/CallableBonds.vcxproj quantlib-1.24/Examples/CallableBonds/CallableBonds.vcxproj --- quantlib-1.21/Examples/CallableBonds/CallableBonds.vcxproj 2021-01-17 14:16:46.000000000 +0000 +++ quantlib-1.24/Examples/CallableBonds/CallableBonds.vcxproj 2021-10-17 10:16:47.000000000 +0000 @@ -542,9 +542,6 @@ - - - {ad0a27da-91da-46a2-acbd-296c419ed3aa} false diff -Nru quantlib-1.21/Examples/CallableBonds/CallableBonds.vcxproj.filters quantlib-1.24/Examples/CallableBonds/CallableBonds.vcxproj.filters --- quantlib-1.21/Examples/CallableBonds/CallableBonds.vcxproj.filters 2021-01-17 14:16:46.000000000 +0000 +++ quantlib-1.24/Examples/CallableBonds/CallableBonds.vcxproj.filters 2021-10-17 10:16:47.000000000 +0000 @@ -19,7 +19,4 @@ Source Files - - - \ No newline at end of file diff -Nru quantlib-1.21/Examples/CallableBonds/CMakeLists.txt quantlib-1.24/Examples/CallableBonds/CMakeLists.txt --- quantlib-1.21/Examples/CallableBonds/CMakeLists.txt 2021-01-17 14:16:46.000000000 +0000 +++ quantlib-1.24/Examples/CallableBonds/CMakeLists.txt 2021-10-17 10:16:47.000000000 +0000 @@ -1,2 +1,6 @@ add_executable(CallableBonds CallableBonds.cpp) -target_link_libraries(CallableBonds ${QL_LINK_LIBRARY}) \ No newline at end of file +target_link_libraries(CallableBonds ql_library ${QL_EXAMPLES_LIBRARIES}) +if (QL_INSTALL_EXAMPLES) + install(TARGETS CallableBonds RUNTIME DESTINATION ${QL_INSTALL_EXAMPLESDIR}) +endif() + diff -Nru quantlib-1.21/Examples/CDS/CDS.cpp quantlib-1.24/Examples/CDS/CDS.cpp --- quantlib-1.21/Examples/CDS/CDS.cpp 2021-01-07 08:01:55.000000000 +0000 +++ quantlib-1.24/Examples/CDS/CDS.cpp 2021-10-15 15:23:14.000000000 +0000 @@ -19,7 +19,7 @@ */ #include -#ifdef BOOST_MSVC +#if !defined(BOOST_ALL_NO_LIB) && defined(BOOST_MSVC) # include #endif #include @@ -52,7 +52,7 @@ #if defined(QL_ENABLE_SESSIONS) namespace QuantLib { - ThreadKey sessionId() { return 0; } + ThreadKey sessionId() { return {}; } } #endif @@ -119,9 +119,8 @@ vector > hr_curve_data = hazardRateStructure->nodes(); cout << "Calibrated hazard rate values: " << endl; - for (Size i = 0; i < hr_curve_data.size(); i++) { - cout << "hazard rate on " << hr_curve_data[i].first << " is " - << hr_curve_data[i].second << endl; + for (auto& i : hr_curve_data) { + cout << "hazard rate on " << i.first << " is " << i.second << endl; } cout << endl; @@ -235,6 +234,8 @@ Settings::instance().evaluationDate() = evaluationDate; + IborCoupon::Settings::instance().createAtParCoupons(); + // set up ISDA IR curve helpers ext::shared_ptr dp1m = @@ -268,52 +269,46 @@ ext::shared_ptr euribor6m = ext::make_shared(Euribor(6 * Months)); - // check if indexed coupon is defined (it should not to be 100% consistent with - // the ISDA spec) - if (!IborCoupon::usingAtParCoupons()) { - std::cout << "Warning: IborCoupon::usingAtParCoupons() == false is used, " - << "which is not precisely consistent with the specification " - << "of the ISDA rate curve." << std::endl; - } + DayCounter thirty360 = Thirty360(Thirty360::BondBasis); ext::shared_ptr sw2y = ext::make_shared( - 0.002230, 2 * Years, TARGET(), Annual, ModifiedFollowing, Thirty360(), + 0.002230, 2 * Years, TARGET(), Annual, ModifiedFollowing, thirty360, euribor6m); ext::shared_ptr sw3y = ext::make_shared( - 0.002760, 3 * Years, TARGET(), Annual, ModifiedFollowing, Thirty360(), + 0.002760, 3 * Years, TARGET(), Annual, ModifiedFollowing, thirty360, euribor6m); ext::shared_ptr sw4y = ext::make_shared( - 0.003530, 4 * Years, TARGET(), Annual, ModifiedFollowing, Thirty360(), + 0.003530, 4 * Years, TARGET(), Annual, ModifiedFollowing, thirty360, euribor6m); ext::shared_ptr sw5y = ext::make_shared( - 0.004520, 5 * Years, TARGET(), Annual, ModifiedFollowing, Thirty360(), + 0.004520, 5 * Years, TARGET(), Annual, ModifiedFollowing, thirty360, euribor6m); ext::shared_ptr sw6y = ext::make_shared( - 0.005720, 6 * Years, TARGET(), Annual, ModifiedFollowing, Thirty360(), + 0.005720, 6 * Years, TARGET(), Annual, ModifiedFollowing, thirty360, euribor6m); ext::shared_ptr sw7y = ext::make_shared( - 0.007050, 7 * Years, TARGET(), Annual, ModifiedFollowing, Thirty360(), + 0.007050, 7 * Years, TARGET(), Annual, ModifiedFollowing, thirty360, euribor6m); ext::shared_ptr sw8y = ext::make_shared( - 0.008420, 8 * Years, TARGET(), Annual, ModifiedFollowing, Thirty360(), + 0.008420, 8 * Years, TARGET(), Annual, ModifiedFollowing, thirty360, euribor6m); ext::shared_ptr sw9y = ext::make_shared( - 0.009720, 9 * Years, TARGET(), Annual, ModifiedFollowing, Thirty360(), + 0.009720, 9 * Years, TARGET(), Annual, ModifiedFollowing, thirty360, euribor6m); ext::shared_ptr sw10y = ext::make_shared( - 0.010900, 10 * Years, TARGET(), Annual, ModifiedFollowing, Thirty360(), + 0.010900, 10 * Years, TARGET(), Annual, ModifiedFollowing, thirty360, euribor6m); ext::shared_ptr sw12y = ext::make_shared( - 0.012870, 12 * Years, TARGET(), Annual, ModifiedFollowing, Thirty360(), + 0.012870, 12 * Years, TARGET(), Annual, ModifiedFollowing, thirty360, euribor6m); ext::shared_ptr sw15y = ext::make_shared( - 0.014970, 15 * Years, TARGET(), Annual, ModifiedFollowing, Thirty360(), + 0.014970, 15 * Years, TARGET(), Annual, ModifiedFollowing, thirty360, euribor6m); ext::shared_ptr sw20y = ext::make_shared( - 0.017000, 20 * Years, TARGET(), Annual, ModifiedFollowing, Thirty360(), + 0.017000, 20 * Years, TARGET(), Annual, ModifiedFollowing, thirty360, euribor6m); ext::shared_ptr sw30y = ext::make_shared( - 0.018210, 30 * Years, TARGET(), Annual, ModifiedFollowing, Thirty360(), + 0.018210, 30 * Years, TARGET(), Annual, ModifiedFollowing, thirty360, euribor6m); std::vector > isdaRateHelper; @@ -345,8 +340,8 @@ // output rate curve std::cout << "ISDA rate curve: " << std::endl; - for(Size i=0;ilatestDate(); + for (auto& i : isdaRateHelper) { + Date d = i->latestDate(); std::cout << d << "\t" << setprecision(6) << rateTs->zeroRate(d,Actual365Fixed(),Continuous).rate() << "\t" << rateTs->discount(d) << std::endl; @@ -395,8 +390,8 @@ 0, WeekendsOnly(), isdaCdsHelper, Actual365Fixed())); std::cout << "ISDA credit curve: " << std::endl; - for(Size i=0;ilatestDate(); + for (auto& i : isdaCdsHelper) { + Date d = i->latestDate(); Real pd = defaultTs->defaultProbability(d); Real t = defaultTs->timeFromReference(d); std::cout << d << ";" << pd << ";" << 1.0 - pd << ";" << @@ -404,7 +399,6 @@ } - // // set up sample CDS trade // ext::shared_ptr trade = @@ -455,82 +449,87 @@ Settings::instance().evaluationDate() = tradeDate; + IborCoupon::Settings::instance().createAtParCoupons(); + + DayCounter actual360 = Actual360(); + DayCounter thirty360 = Thirty360(Thirty360::BondBasis); + ext::shared_ptr dp1m = ext::make_shared(0.00445, 1 * Months, 2, WeekendsOnly(), ModifiedFollowing, - false, Actual360()); + false, actual360); ext::shared_ptr dp2m = ext::make_shared(0.00949, 2 * Months, 2, WeekendsOnly(), ModifiedFollowing, - false, Actual360()); + false, actual360); ext::shared_ptr dp3m = ext::make_shared(0.01234, 3 * Months, 2, WeekendsOnly(), ModifiedFollowing, - false, Actual360()); + false, actual360); ext::shared_ptr dp6m = ext::make_shared(0.01776, 6 * Months, 2, WeekendsOnly(), ModifiedFollowing, - false, Actual360()); + false, actual360); ext::shared_ptr dp9m = ext::make_shared(0.01935, 9 * Months, 2, WeekendsOnly(), ModifiedFollowing, - false, Actual360()); + false, actual360); ext::shared_ptr dp1y = ext::make_shared(0.02084, 12 * Months, 2, WeekendsOnly(), ModifiedFollowing, - false, Actual360()); + false, actual360); // this index is probably not important since we are not using - // IborCoupon::usingAtParCoupons() == false + // IborCoupon::Settings::instance().usingAtParCoupons() == false // - define it "isda compliant" anyway ext::shared_ptr euribor6m = ext::make_shared( "IsdaIbor", 6 * Months, 2, EURCurrency(), WeekendsOnly(), - ModifiedFollowing, false, Actual360()); + ModifiedFollowing, false, actual360); ext::shared_ptr sw2y = ext::make_shared( - 0.01652, 2 * Years, WeekendsOnly(), Annual, ModifiedFollowing, Thirty360(), + 0.01652, 2 * Years, WeekendsOnly(), Annual, ModifiedFollowing, thirty360, euribor6m); ext::shared_ptr sw3y = ext::make_shared( - 0.02018, 3 * Years, WeekendsOnly(), Annual, ModifiedFollowing, Thirty360(), + 0.02018, 3 * Years, WeekendsOnly(), Annual, ModifiedFollowing, thirty360, euribor6m); ext::shared_ptr sw4y = ext::make_shared( - 0.02303, 4 * Years, WeekendsOnly(), Annual, ModifiedFollowing, Thirty360(), + 0.02303, 4 * Years, WeekendsOnly(), Annual, ModifiedFollowing, thirty360, euribor6m); ext::shared_ptr sw5y = ext::make_shared( - 0.02525, 5 * Years, WeekendsOnly(), Annual, ModifiedFollowing, Thirty360(), + 0.02525, 5 * Years, WeekendsOnly(), Annual, ModifiedFollowing, thirty360, euribor6m); ext::shared_ptr sw6y = ext::make_shared( - 0.02696, 6 * Years, WeekendsOnly(), Annual, ModifiedFollowing, Thirty360(), + 0.02696, 6 * Years, WeekendsOnly(), Annual, ModifiedFollowing, thirty360, euribor6m); ext::shared_ptr sw7y = ext::make_shared( - 0.02825, 7 * Years, WeekendsOnly(), Annual, ModifiedFollowing, Thirty360(), + 0.02825, 7 * Years, WeekendsOnly(), Annual, ModifiedFollowing, thirty360, euribor6m); ext::shared_ptr sw8y = ext::make_shared( - 0.02931, 8 * Years, WeekendsOnly(), Annual, ModifiedFollowing, Thirty360(), + 0.02931, 8 * Years, WeekendsOnly(), Annual, ModifiedFollowing, thirty360, euribor6m); ext::shared_ptr sw9y = ext::make_shared( - 0.03017, 9 * Years, WeekendsOnly(), Annual, ModifiedFollowing, Thirty360(), + 0.03017, 9 * Years, WeekendsOnly(), Annual, ModifiedFollowing, thirty360, euribor6m); ext::shared_ptr sw10y = ext::make_shared( - 0.03092, 10 * Years, WeekendsOnly(), Annual, ModifiedFollowing, Thirty360(), + 0.03092, 10 * Years, WeekendsOnly(), Annual, ModifiedFollowing, thirty360, euribor6m); ext::shared_ptr sw11y = ext::make_shared( - 0.03160, 11 * Years, WeekendsOnly(), Annual, ModifiedFollowing, Thirty360(), + 0.03160, 11 * Years, WeekendsOnly(), Annual, ModifiedFollowing, thirty360, euribor6m); ext::shared_ptr sw12y = ext::make_shared( - 0.03231, 12 * Years, WeekendsOnly(), Annual, ModifiedFollowing, Thirty360(), + 0.03231, 12 * Years, WeekendsOnly(), Annual, ModifiedFollowing, thirty360, euribor6m); ext::shared_ptr sw15y = ext::make_shared( - 0.03367, 15 * Years, WeekendsOnly(), Annual, ModifiedFollowing, Thirty360(), + 0.03367, 15 * Years, WeekendsOnly(), Annual, ModifiedFollowing, thirty360, euribor6m); ext::shared_ptr sw20y = ext::make_shared( - 0.03419, 20 * Years, WeekendsOnly(), Annual, ModifiedFollowing, Thirty360(), + 0.03419, 20 * Years, WeekendsOnly(), Annual, ModifiedFollowing, thirty360, euribor6m); ext::shared_ptr sw25y = ext::make_shared( - 0.03411, 25 * Years, WeekendsOnly(), Annual, ModifiedFollowing, Thirty360(), + 0.03411, 25 * Years, WeekendsOnly(), Annual, ModifiedFollowing, thirty360, euribor6m); ext::shared_ptr sw30y = ext::make_shared( - 0.03412, 30 * Years, WeekendsOnly(), Annual, ModifiedFollowing, Thirty360(), + 0.03412, 30 * Years, WeekendsOnly(), Annual, ModifiedFollowing, thirty360, euribor6m); std::vector > isdaYieldHelpers; @@ -613,8 +612,8 @@ // check the curves std::cout << "ISDA yield curve:" << std::endl; std::cout << "date;time;zeroyield" << std::endl; - for (Size i = 0; i < isdaYieldHelpers.size(); i++) { - Date d = isdaYieldHelpers[i]->latestDate(); + for (auto& isdaYieldHelper : isdaYieldHelpers) { + Date d = isdaYieldHelper->latestDate(); Real t = isdaYts->timeFromReference(d); std::cout << d << ";" << t << ";" << isdaYts->zeroRate(d, Actual365Fixed(), Continuous).rate() @@ -623,8 +622,8 @@ std::cout << "ISDA credit curve:" << std::endl; std::cout << "date;time;survivalprob" << std::endl; - for (Size i = 0; i < isdaCdsHelpers.size(); i++) { - Date d = isdaCdsHelpers[i]->latestDate(); + for (auto& isdaCdsHelper : isdaCdsHelpers) { + Date d = isdaCdsHelper->latestDate(); Real t = isdaCts->timeFromReference(d); std::cout << d << ";" << t << ";" << isdaCts->survivalProbability(d) << std::endl; diff -Nru quantlib-1.21/Examples/CDS/CDS.vcxproj quantlib-1.24/Examples/CDS/CDS.vcxproj --- quantlib-1.21/Examples/CDS/CDS.vcxproj 2021-01-17 14:16:46.000000000 +0000 +++ quantlib-1.24/Examples/CDS/CDS.vcxproj 2021-10-17 10:16:47.000000000 +0000 @@ -542,9 +542,6 @@ - - - {ad0a27da-91da-46a2-acbd-296c419ed3aa} false diff -Nru quantlib-1.21/Examples/CDS/CDS.vcxproj.filters quantlib-1.24/Examples/CDS/CDS.vcxproj.filters --- quantlib-1.21/Examples/CDS/CDS.vcxproj.filters 2021-01-17 14:16:46.000000000 +0000 +++ quantlib-1.24/Examples/CDS/CDS.vcxproj.filters 2021-10-17 10:16:47.000000000 +0000 @@ -19,7 +19,4 @@ Source Files - - - \ No newline at end of file diff -Nru quantlib-1.21/Examples/CDS/CMakeLists.txt quantlib-1.24/Examples/CDS/CMakeLists.txt --- quantlib-1.21/Examples/CDS/CMakeLists.txt 2021-01-17 14:16:46.000000000 +0000 +++ quantlib-1.24/Examples/CDS/CMakeLists.txt 2021-10-17 10:16:47.000000000 +0000 @@ -1,2 +1,5 @@ add_executable(CDS CDS.cpp) -target_link_libraries(CDS ${QL_LINK_LIBRARY}) \ No newline at end of file +target_link_libraries(CDS ql_library ${QL_EXAMPLES_LIBRARIES}) +if (QL_INSTALL_EXAMPLES) + install(TARGETS CDS RUNTIME DESTINATION ${QL_INSTALL_EXAMPLESDIR}) +endif() diff -Nru quantlib-1.21/Examples/CMakeLists.txt quantlib-1.24/Examples/CMakeLists.txt --- quantlib-1.21/Examples/CMakeLists.txt 2019-12-05 14:16:42.000000000 +0000 +++ quantlib-1.24/Examples/CMakeLists.txt 2021-10-15 15:23:14.000000000 +0000 @@ -1,3 +1,8 @@ +if (QL_ENABLE_SESSIONS OR QL_ENABLE_SINGLETON_THREAD_SAFE_INIT OR + QL_ENABLE_THREAD_SAFE_OBSERVER_PATTERN) + set(QL_EXAMPLES_LIBRARIES Boost::thread ${RT_LIBRARY}) +endif() + add_subdirectory(BasketLosses) add_subdirectory(BermudanSwaption) add_subdirectory(Bonds) diff -Nru quantlib-1.21/Examples/ConvertibleBonds/CMakeLists.txt quantlib-1.24/Examples/ConvertibleBonds/CMakeLists.txt --- quantlib-1.21/Examples/ConvertibleBonds/CMakeLists.txt 2021-01-17 14:16:46.000000000 +0000 +++ quantlib-1.24/Examples/ConvertibleBonds/CMakeLists.txt 2021-10-17 10:16:47.000000000 +0000 @@ -1,2 +1,5 @@ add_executable(ConvertibleBonds ConvertibleBonds.cpp) -target_link_libraries(ConvertibleBonds ${QL_LINK_LIBRARY}) \ No newline at end of file +target_link_libraries(ConvertibleBonds ql_library ${QL_EXAMPLES_LIBRARIES}) +if (QL_INSTALL_EXAMPLES) + install(TARGETS ConvertibleBonds RUNTIME DESTINATION ${QL_INSTALL_EXAMPLESDIR}) +endif() diff -Nru quantlib-1.21/Examples/ConvertibleBonds/ConvertibleBonds.cpp quantlib-1.24/Examples/ConvertibleBonds/ConvertibleBonds.cpp --- quantlib-1.21/Examples/ConvertibleBonds/ConvertibleBonds.cpp 2020-10-14 21:13:40.000000000 +0000 +++ quantlib-1.24/Examples/ConvertibleBonds/ConvertibleBonds.cpp 2021-10-15 15:23:14.000000000 +0000 @@ -19,7 +19,7 @@ */ #include -#ifdef BOOST_MSVC +#if !defined(BOOST_ALL_NO_LIB) && defined(BOOST_MSVC) # include #endif #include @@ -38,7 +38,7 @@ #if defined(QL_ENABLE_SESSIONS) namespace QuantLib { - ThreadKey sessionId() { return 0; } + ThreadKey sessionId() { return {}; } } #endif @@ -86,7 +86,7 @@ std::vector coupons(1, 0.05); - DayCounter bondDayCount = Thirty360(); + DayCounter bondDayCount = Thirty360(Thirty360::BondBasis); Integer callLength[] = { 2, 4 }; // Call dates, years 2, 4. Integer putLength[] = { 3 }; // Put dates year 3 diff -Nru quantlib-1.21/Examples/ConvertibleBonds/ConvertibleBonds.vcxproj quantlib-1.24/Examples/ConvertibleBonds/ConvertibleBonds.vcxproj --- quantlib-1.21/Examples/ConvertibleBonds/ConvertibleBonds.vcxproj 2021-01-17 14:16:46.000000000 +0000 +++ quantlib-1.24/Examples/ConvertibleBonds/ConvertibleBonds.vcxproj 2021-10-17 10:16:47.000000000 +0000 @@ -542,9 +542,6 @@ - - - {ad0a27da-91da-46a2-acbd-296c419ed3aa} false diff -Nru quantlib-1.21/Examples/ConvertibleBonds/ConvertibleBonds.vcxproj.filters quantlib-1.24/Examples/ConvertibleBonds/ConvertibleBonds.vcxproj.filters --- quantlib-1.21/Examples/ConvertibleBonds/ConvertibleBonds.vcxproj.filters 2021-01-17 14:16:46.000000000 +0000 +++ quantlib-1.24/Examples/ConvertibleBonds/ConvertibleBonds.vcxproj.filters 2021-10-17 10:16:47.000000000 +0000 @@ -19,7 +19,4 @@ Source Files - - - \ No newline at end of file diff -Nru quantlib-1.21/Examples/CVAIRS/CMakeLists.txt quantlib-1.24/Examples/CVAIRS/CMakeLists.txt --- quantlib-1.21/Examples/CVAIRS/CMakeLists.txt 2021-01-17 14:16:46.000000000 +0000 +++ quantlib-1.24/Examples/CVAIRS/CMakeLists.txt 2021-10-17 10:16:47.000000000 +0000 @@ -1,2 +1,5 @@ add_executable(CVAIRS CVAIRS.cpp) -target_link_libraries(CVAIRS ${QL_LINK_LIBRARY}) +target_link_libraries(CVAIRS ql_library ${QL_EXAMPLES_LIBRARIES}) +if (QL_INSTALL_EXAMPLES) + install(TARGETS CVAIRS RUNTIME DESTINATION ${QL_INSTALL_EXAMPLESDIR}) +endif() diff -Nru quantlib-1.21/Examples/CVAIRS/CVAIRS.cpp quantlib-1.24/Examples/CVAIRS/CVAIRS.cpp --- quantlib-1.21/Examples/CVAIRS/CVAIRS.cpp 2020-10-14 21:13:40.000000000 +0000 +++ quantlib-1.24/Examples/CVAIRS/CVAIRS.cpp 2021-10-15 15:23:14.000000000 +0000 @@ -18,7 +18,7 @@ */ #include -#ifdef BOOST_MSVC +#if !defined(BOOST_ALL_NO_LIB) && defined(BOOST_MSVC) # include #endif #include @@ -42,7 +42,7 @@ #if defined(QL_ENABLE_SESSIONS) namespace QuantLib { - ThreadKey sessionId() { return 0; } + ThreadKey sessionId() { return {}; } } #endif @@ -123,27 +123,15 @@ intesitiesVHigh.push_back(intensitiesHigh[i]); } - defaultIntensityTS.push_back(Handle( - ext::shared_ptr( - new InterpolatedHazardRateCurve( - defaultTSDates, - intesitiesVLow, - Actual360(), - TARGET())))); - defaultIntensityTS.push_back(Handle( - ext::shared_ptr( - new InterpolatedHazardRateCurve( - defaultTSDates, - intesitiesVMedium, - Actual360(), - TARGET())))); - defaultIntensityTS.push_back(Handle( - ext::shared_ptr( - new InterpolatedHazardRateCurve( - defaultTSDates, - intesitiesVHigh, - Actual360(), - TARGET())))); + defaultIntensityTS.emplace_back(ext::shared_ptr( + new InterpolatedHazardRateCurve(defaultTSDates, intesitiesVLow, + Actual360(), TARGET()))); + defaultIntensityTS.emplace_back(ext::shared_ptr( + new InterpolatedHazardRateCurve(defaultTSDates, intesitiesVMedium, + Actual360(), TARGET()))); + defaultIntensityTS.emplace_back(ext::shared_ptr( + new InterpolatedHazardRateCurve(defaultTSDates, intesitiesVHigh, + Actual360(), TARGET()))); Volatility blackVol = 0.15; ext::shared_ptr ctptySwapCvaLow = @@ -180,9 +168,7 @@ DayCounter fixedLegDayCounter = ActualActual(ActualActual::ISDA); DayCounter floatingLegDayCounter = ActualActual(ActualActual::ISDA); - VanillaSwap::Type swapType = - //VanillaSwap::Receiver ; - VanillaSwap::Payer; + Swap::Type swapType = Swap::Payer; ext::shared_ptr yieldIndxS( new Euribor3M(Handle(swapTS))); std::vector riskySwaps; diff -Nru quantlib-1.21/Examples/DiscreteHedging/CMakeLists.txt quantlib-1.24/Examples/DiscreteHedging/CMakeLists.txt --- quantlib-1.21/Examples/DiscreteHedging/CMakeLists.txt 2021-01-17 14:16:46.000000000 +0000 +++ quantlib-1.24/Examples/DiscreteHedging/CMakeLists.txt 2021-10-17 10:16:47.000000000 +0000 @@ -1,2 +1,5 @@ add_executable(DiscreteHedging DiscreteHedging.cpp) -target_link_libraries(DiscreteHedging ${QL_LINK_LIBRARY}) \ No newline at end of file +target_link_libraries(DiscreteHedging ql_library ${QL_EXAMPLES_LIBRARIES}) +if (QL_INSTALL_EXAMPLES) + install(TARGETS DiscreteHedging RUNTIME DESTINATION ${QL_INSTALL_EXAMPLESDIR}) +endif() diff -Nru quantlib-1.21/Examples/DiscreteHedging/DiscreteHedging.cpp quantlib-1.24/Examples/DiscreteHedging/DiscreteHedging.cpp --- quantlib-1.21/Examples/DiscreteHedging/DiscreteHedging.cpp 2020-10-14 21:13:40.000000000 +0000 +++ quantlib-1.24/Examples/DiscreteHedging/DiscreteHedging.cpp 2021-10-15 15:23:14.000000000 +0000 @@ -46,7 +46,7 @@ */ #include -#ifdef BOOST_MSVC +#if !defined(BOOST_ALL_NO_LIB) && defined(BOOST_MSVC) # include #endif #include @@ -66,7 +66,7 @@ #if defined(QL_ENABLE_SESSIONS) namespace QuantLib { - ThreadKey sessionId() { return 0; } + ThreadKey sessionId() { return {}; } } #endif @@ -155,7 +155,7 @@ } // The value() method encapsulates the pricing code - Real operator()(const Path& path) const; + Real operator()(const Path& path) const override; private: Option::Type type_; diff -Nru quantlib-1.21/Examples/DiscreteHedging/DiscreteHedging.vcxproj quantlib-1.24/Examples/DiscreteHedging/DiscreteHedging.vcxproj --- quantlib-1.21/Examples/DiscreteHedging/DiscreteHedging.vcxproj 2021-01-17 14:16:46.000000000 +0000 +++ quantlib-1.24/Examples/DiscreteHedging/DiscreteHedging.vcxproj 2021-10-17 10:16:47.000000000 +0000 @@ -542,9 +542,6 @@ - - - {ad0a27da-91da-46a2-acbd-296c419ed3aa} false diff -Nru quantlib-1.21/Examples/DiscreteHedging/DiscreteHedging.vcxproj.filters quantlib-1.24/Examples/DiscreteHedging/DiscreteHedging.vcxproj.filters --- quantlib-1.21/Examples/DiscreteHedging/DiscreteHedging.vcxproj.filters 2021-01-17 14:16:46.000000000 +0000 +++ quantlib-1.24/Examples/DiscreteHedging/DiscreteHedging.vcxproj.filters 2021-10-17 10:16:47.000000000 +0000 @@ -19,7 +19,4 @@ Source Files - - - \ No newline at end of file diff -Nru quantlib-1.21/Examples/EquityOption/CMakeLists.txt quantlib-1.24/Examples/EquityOption/CMakeLists.txt --- quantlib-1.21/Examples/EquityOption/CMakeLists.txt 2021-01-17 14:16:46.000000000 +0000 +++ quantlib-1.24/Examples/EquityOption/CMakeLists.txt 2021-10-17 10:16:47.000000000 +0000 @@ -1,2 +1,5 @@ add_executable(EquityOption EquityOption.cpp) -target_link_libraries(EquityOption ${QL_LINK_LIBRARY}) \ No newline at end of file +target_link_libraries(EquityOption ql_library ${QL_EXAMPLES_LIBRARIES}) +if (QL_INSTALL_EXAMPLES) + install(TARGETS EquityOption RUNTIME DESTINATION ${QL_INSTALL_EXAMPLESDIR}) +endif() diff -Nru quantlib-1.21/Examples/EquityOption/EquityOption.cpp quantlib-1.24/Examples/EquityOption/EquityOption.cpp --- quantlib-1.21/Examples/EquityOption/EquityOption.cpp 2020-10-14 21:13:40.000000000 +0000 +++ quantlib-1.24/Examples/EquityOption/EquityOption.cpp 2021-10-15 15:23:14.000000000 +0000 @@ -18,7 +18,7 @@ */ #include -#ifdef BOOST_MSVC +#if !defined(BOOST_ALL_NO_LIB) && defined(BOOST_MSVC) # include #endif #include @@ -45,7 +45,7 @@ #if defined(QL_ENABLE_SESSIONS) namespace QuantLib { - ThreadKey sessionId() { return 0; } + ThreadKey sessionId() { return {}; } } #endif diff -Nru quantlib-1.21/Examples/EquityOption/EquityOption.vcxproj quantlib-1.24/Examples/EquityOption/EquityOption.vcxproj --- quantlib-1.21/Examples/EquityOption/EquityOption.vcxproj 2021-01-17 14:16:46.000000000 +0000 +++ quantlib-1.24/Examples/EquityOption/EquityOption.vcxproj 2021-10-17 10:16:47.000000000 +0000 @@ -542,9 +542,6 @@ - - - {ad0a27da-91da-46a2-acbd-296c419ed3aa} false diff -Nru quantlib-1.21/Examples/EquityOption/EquityOption.vcxproj.filters quantlib-1.24/Examples/EquityOption/EquityOption.vcxproj.filters --- quantlib-1.21/Examples/EquityOption/EquityOption.vcxproj.filters 2021-01-17 14:16:46.000000000 +0000 +++ quantlib-1.24/Examples/EquityOption/EquityOption.vcxproj.filters 2021-10-17 10:16:47.000000000 +0000 @@ -19,7 +19,4 @@ Source Files - - - \ No newline at end of file diff -Nru quantlib-1.21/Examples/FittedBondCurve/CMakeLists.txt quantlib-1.24/Examples/FittedBondCurve/CMakeLists.txt --- quantlib-1.21/Examples/FittedBondCurve/CMakeLists.txt 2021-01-17 14:16:46.000000000 +0000 +++ quantlib-1.24/Examples/FittedBondCurve/CMakeLists.txt 2021-10-17 10:16:47.000000000 +0000 @@ -1,2 +1,5 @@ add_executable(FittedBondCurve FittedBondCurve.cpp) -target_link_libraries(FittedBondCurve ${QL_LINK_LIBRARY}) \ No newline at end of file +target_link_libraries(FittedBondCurve ql_library ${QL_EXAMPLES_LIBRARIES}) +if (QL_INSTALL_EXAMPLES) + install(TARGETS FittedBondCurve RUNTIME DESTINATION ${QL_INSTALL_EXAMPLESDIR}) +endif() diff -Nru quantlib-1.21/Examples/FittedBondCurve/FittedBondCurve.cpp quantlib-1.24/Examples/FittedBondCurve/FittedBondCurve.cpp --- quantlib-1.21/Examples/FittedBondCurve/FittedBondCurve.cpp 2021-01-07 08:01:55.000000000 +0000 +++ quantlib-1.24/Examples/FittedBondCurve/FittedBondCurve.cpp 2021-10-15 15:23:14.000000000 +0000 @@ -27,7 +27,7 @@ */ #include -#ifdef BOOST_MSVC +#if !defined(BOOST_ALL_NO_LIB) && defined(BOOST_MSVC) # include #endif #include @@ -49,7 +49,7 @@ #if defined(QL_ENABLE_SESSIONS) namespace QuantLib { - ThreadKey sessionId() { return 0; } + ThreadKey sessionId() { return {}; } } #endif @@ -89,13 +89,13 @@ const Size numberOfBonds = 15; Real cleanPrice[numberOfBonds]; - for (Size i=0; i > quote; - for (Size i=0; i cp(new SimpleQuote(cleanPrice[i])); + for (double i : cleanPrice) { + ext::shared_ptr cp(new SimpleQuote(i)); quote.push_back(cp); } @@ -227,8 +227,8 @@ 20.0, 25.0, 30.0, 40.0, 50.0 }; std::vector