# look for boost library, but don't make it a fatal error if not found
cvc4_has_threads=maybe
-cvc4_must_have_threads=no
AC_ARG_WITH([portfolio],
- AS_HELP_STRING([--with-portfolio], [build the multithreaded portfolio version of CVC4 (pcvc4)]),
- [if test "$withval" = no; then cvc4_has_threads=no; elif test "$withval" = yes; then cvc4_must_have_threads=yes; fi])
+ AS_HELP_STRING([--with-portfolio], [build the multithreaded portfolio version of CVC4 (pcvc4)]))
if test $cvc4_has_threads = maybe; then
cvc4_save_LDFLAGS="$LDFLAGS"
if test "$enable_static_binary" = yes; then
fi
LDFLAGS="$cvc4_save_LDFLAGS"
fi
-if test $cvc4_has_threads = no -a $cvc4_must_have_threads = yes; then
- AC_MSG_ERROR([user gave --with-portfolio but could not build with threads; maybe boost threading library is missing?])
+if test $cvc4_has_threads = no; then
+ if test $with_portfolio = yes; then
+ AC_MSG_ERROR([user gave --with-portfolio but could not build with threads; maybe boost threading library is missing?])
+ fi
+ with_portfolio=no
+fi
+if test x$with_portfolio != xyes; then
+ with_portfolio=no
fi
+AM_CONDITIONAL([CVC4_BUILD_PCVC4], [test "$with_portfolio" = yes])
# Whether to build compatibility library
CVC4_BUILD_LIBCOMPAT=yes
To build CVC4 with GMP instead (which is covered under the more permissive
LGPL), configure --without-cln.
+"
+ if test $with_portfolio = yes; then
+ licensewarn="${licensewarn}
WARNING * WARNING * WARNING * WARNING * WARNING * WARNING * WARNING * WARNING
WARNING * WARNING * WARNING * WARNING * WARNING * WARNING * WARNING * WARNING
WARNING * WARNING * WARNING * WARNING * WARNING * WARNING * WARNING * WARNING
"
+ fi
else
mplibrary='gmp (LGPL)'
fi
Multithreaded: $support_multithreaded
TLS support : $CVC4_TLS_explanation
+Portfolio : $with_portfolio
MP library : $mplibrary