diff options
author | Hoang M. Le <hle@informatik.uni-bremen.de> | 2016-06-08 18:01:39 +0200 |
---|---|---|
committer | Hoang M. Le <hle@informatik.uni-bremen.de> | 2016-06-10 11:32:20 +0200 |
commit | 3e5288a6d9719735a505647ad9fcfc63b5bb2fc1 (patch) | |
tree | 6f245eb7af61bfefbb1723bdbfb12c62867ebca4 /autoconf | |
parent | 70bb7ef976a6a7b43d8aad6577773feaed7a2ebd (diff) | |
download | klee-3e5288a6d9719735a505647ad9fcfc63b5bb2fc1.tar.gz |
add --with-metasmt-default-solver option to configure
Diffstat (limited to 'autoconf')
-rw-r--r-- | autoconf/configure.ac | 40 |
1 files changed, 39 insertions, 1 deletions
diff --git a/autoconf/configure.ac b/autoconf/configure.ac index 63b1b6ca..00143171 100644 --- a/autoconf/configure.ac +++ b/autoconf/configure.ac @@ -742,7 +742,6 @@ dnl ************************************************************************** AC_ARG_WITH(metasmt, AS_HELP_STRING([--with-metasmt], [Location of metaSMT installation directory]),,) - if test X$with_metasmt = X ; then ENABLE_METASMT=0 AC_MSG_NOTICE([Not using MetaSMT solver backend]) @@ -775,6 +774,45 @@ fi AC_SUBST(ENABLE_METASMT) + +dnl ************************************************************************** +dnl User option to specify the default solver of metaSMT +dnl ************************************************************************** + +AC_ARG_WITH(metasmt-default-solver, + AS_HELP_STRING([--with-metasmt-default-solver], + [Default solver of metaSMT (btor|stp|z3, stp if unspecified)]),,) + +if test "X$with_metasmt_default_solver" != X ; then + if test "X$ENABLE_METASMT" != X1 ; then + AC_MSG_ERROR([--with-metasmt-default-solver requires metaSMT to be enabled]) + fi + if test "$with_metasmt_default_solver" == "btor" ; then + METASMT_DEFAULT_SOLVER=BTOR + AC_MSG_NOTICE([metaSMT uses Boolector as default solver]) + fi + if test "$with_metasmt_default_solver" == "z3" ; then + METASMT_DEFAULT_SOLVER=Z3 + AC_MSG_NOTICE([metaSMT uses Z3 as default solver]) + fi + if test "$with_metasmt_default_solver" == "stp" ; then + METASMT_DEFAULT_SOLVER=STP + AC_MSG_NOTICE([metaSMT uses STP as default solver]) + fi + if test "X$METASMT_DEFAULT_SOLVER" == X ; then + METASMT_DEFAULT_SOLVER=STP + AC_MSG_NOTICE([$with_metasmt_default_solver unsupported, metaSMT uses STP as default solver]) + fi +else + if test "X$ENABLE_METASMT" == X1 ; then + METASMT_DEFAULT_SOLVER=STP + AC_MSG_NOTICE([No solver specified, metaSMT uses STP as default solver]) + fi +fi + +AC_SUBST(METASMT_DEFAULT_SOLVER) + + dnl ************************************************************************** dnl Check at least one solver backend is enabled dnl ************************************************************************** |