From: Morgan Deters Date: Wed, 18 Dec 2013 17:23:24 +0000 (-0500) Subject: Fix an autoconf issue with CLN in some configurations; also clarification re: license... X-Git-Tag: cvc5-1.0.0~6987^2~25 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=28d95f84b62d2c00b475d0204bfac7d77d679586;p=cvc5.git Fix an autoconf issue with CLN in some configurations; also clarification re: license issues [skip ci] --- diff --git a/configure.ac b/configure.ac index a9177fbc5..6e51951f4 100644 --- a/configure.ac +++ b/configure.ac @@ -298,6 +298,8 @@ if test $cvc4_use_cln != 0; then # we have to have PKG_CHECK_MODULES _exactly_ once in configure.ac ! PKG_CHECK_MODULES([CLN], [cln >= 1.2.2], [AC_LANG_PUSH([C++]) + save_LIBS="$LIBS" + LIBS="$CLN_LIBS $LIBS" AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include ]], [[cln::cl_F pi = "3.1415926";]])], [ cvc4_use_cln=1 ], [ @@ -311,6 +313,7 @@ if test $cvc4_use_cln != 0; then cvc4_use_gmp=1 fi ]) + LIBS="$save_LIBS" AC_LANG_POP([C++]) ], [if test $cvc4_use_cln = 1; then @@ -1357,7 +1360,7 @@ Please note that CVC4 will be built against the following GPLed libraries: As these libraries are covered under the GPLv3, so is this build of CVC4. CVC4 is also available to you under the terms of the (modified) BSD license. If you prefer to license CVC4 under those terms, please configure with the -option "--bsd". +option "--bsd", which will disable all optional GPLed library dependences. **************************************************************************** '