ac_option_build=`expr "$ac_option" : '\([[^-]]*\)-\?'`
ac_cvc4_build_profile_set=yes
AC_MSG_NOTICE([CVC4: building profile $ac_option_build])
- for x in optimized assertions tracing muzzle coverage profiling; do
+ for x in optimized statistics assertions tracing muzzle coverage profiling; do
if expr "$ac_option" : '.*-no'$x'-\|.*-no'$x'$' >/dev/null; then
eval 'ac_cvc4_rewritten_args="${ac_cvc4_rewritten_args+$ac_cvc4_rewritten_args }\"--disable-$x\""'
fi
eval 'ac_cvc4_rewritten_args="${ac_cvc4_rewritten_args+$ac_cvc4_rewritten_args }\"--enable-$x\""'
fi
done
+ if expr "$ac_option" : '.*-nostaticbinary-\|.*-nostaticbinary$' >/dev/null; then
+ eval 'ac_cvc4_rewritten_args="${ac_cvc4_rewritten_args+$ac_cvc4_rewritten_args }\"--disable-static-binary\""'
+ fi
+ if expr "$ac_option" : '.*-staticbinary-\|.*-staticbinary$' >/dev/null; then
+ eval 'ac_cvc4_rewritten_args="${ac_cvc4_rewritten_args+$ac_cvc4_rewritten_args }\"--enable-static-binary\""'
+ fi
if expr "$ac_option" : '.*-nodebugsymbols-\|.*-nodebugsymbols$' >/dev/null; then
eval 'ac_cvc4_rewritten_args="${ac_cvc4_rewritten_args+$ac_cvc4_rewritten_args }\"--disable-debug-symbols\""'
fi
AC_CANONICAL_HOST
AC_CANONICAL_TARGET
+if test "$enable_shared" = no -a "$enable_static" = yes; then
+ enable_static_binary=yes
+fi
+
# Features requested by the user
AC_MSG_CHECKING([for requested build profile])
AC_ARG_WITH([build],
btargs="$btargs nooptimized"
fi
fi
+if test -n "${enable_static_binary+set}"; then
+ if test "$enable_static_binary" = yes; then
+ btargs="$btargs staticbinary"
+ else
+ btargs="$btargs nostaticbinary"
+ fi
+fi
if test -n "${enable_debug_symbols+set}"; then
if test "$enable_debug_symbols" = yes; then
btargs="$btargs debugsymbols"
FLAG_VISIBILITY_HIDDEN=
if test -z "${enable_optimized+set}" ; then enable_optimized=no ; fi
if test -z "${enable_debug_symbols+set}"; then enable_debug_symbols=yes ; fi
+ if test -z "${enable_statistics+set}" ; then enable_statistics=yes ; fi
if test -z "${enable_assertions+set}" ; then enable_assertions=yes ; fi
if test -z "${enable_tracing+set}" ; then enable_tracing=yes ; fi
- if test -z "${enable_statistics+set}" ; then enable_statistics=yes ; fi
if test -z "${enable_muzzle+set}" ; then enable_muzzle=no ; fi
;;
default) # moderately optimized, assertions, tracing
if test -z "${OPTLEVEL+set}" ; then OPTLEVEL=2 ; fi
if test -z "${enable_optimized+set}" ; then enable_optimized=yes ; fi
if test -z "${enable_debug_symbols+set}"; then enable_debug_symbols=yes ; fi
- if test -z "${enable_assertions+set}" ; then enable_assertions=yes ; fi
if test -z "${enable_statistics+set}" ; then enable_statistics=yes ; fi
+ if test -z "${enable_assertions+set}" ; then enable_assertions=yes ; fi
if test -z "${enable_tracing+set}" ; then enable_tracing=yes ; fi
if test -z "${enable_muzzle+set}" ; then enable_muzzle=no ; fi
;;
if test -z "${OPTLEVEL+set}" ; then OPTLEVEL=9 ; fi
if test -z "${enable_optimized+set}" ; then enable_optimized=yes ; fi
if test -z "${enable_debug_symbols+set}"; then enable_debug_symbols=no ; fi
- if test -z "${enable_assertions+set}" ; then enable_assertions=no ; fi
if test -z "${enable_statistics+set}" ; then enable_statistics=no ; fi
+ if test -z "${enable_assertions+set}" ; then enable_assertions=no ; fi
if test -z "${enable_tracing+set}" ; then enable_tracing=no ; fi
if test -z "${enable_muzzle+set}" ; then enable_muzzle=yes ; fi
;;
Build ID : $build_type
Optimized : $optimized
Debug symbols: $enable_debug_symbols
+Statistics : $enable_statistics
Assertions : $enable_assertions
Tracing : $enable_tracing
Muzzle : $enable_muzzle
gcov support : $enable_coverage
gprof support: $enable_profiling
-unit tests : $support_unit_tests
-statistics : $enable_statistics
+Unit tests : $support_unit_tests
-static libs : $enable_static
-shared libs : $enable_shared
-static binary: $enable_static_binary
+Static libs : $enable_static
+Shared libs : $enable_shared
+Static binary: $enable_static_binary
CPPFLAGS : $CPPFLAGS
CXXFLAGS : $CXXFLAGS