DOXYGEN
TEST_CPPFLAGS
TEST_CXXFLAGS
-TEST_LDFLAGS'
+TEST_LDFLAGS
+PERL'
unset ac_cvc4_rewritten_args
CXXFLAGS to use when testing (default=$CXXFLAGS)
TEST_LDFLAGS
LDFLAGS to use when testing (default=$LDFLAGS)
+ PERL PERL interpreter (used when testing)
Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.
CVC4_RELEASE=prerelease
+
+# Libtool version numbers for libraries
+# Version numbers are in the form current:revision:age
+#
+# current -
+# increment if interfaces have been added, removed or changed
+# revision -
+# increment if source code has changed
+# set to zero if current is incremented
+# age -
+# increment if interfaces have been added
+# set to zero if interfaces have been removed
+# or changed
+#
+# For more information, see:
+# http://www.gnu.org/software/libtool/manual/libtool.html#Versioning
+# For guidance on when to change the version number, refer to the
+# developer's guide.
+
CVC4_LIBRARY_RELEASE_CODE=0:0:0
CVC4_LIBRARY_VERSION=0:0:0
CVC4_PARSER_LIBRARY_VERSION=0:0:0
withval=$with_build;
fi
+
if test -z "${with_build+set}" -o "$with_build" = default; then
with_build=default
fi
if test -z "${enable_optimized+set}" -a -z "${enable_debug_symbols+set}" -a -z "${enable_assertions+set}" -a -z "${enable_tracing+set}" -a -z "${enable_muzzle+set}" -a -z "${enable_coverage+set}" -a -z "${enable_profiling+set}"; then
- non_standard_build_profile=no
+ custom_build_profile=no
else
- non_standard_build_profile=yes
+ custom_build_profile=yes
fi
btargs=
if test -n "${enable_optimized+set}"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for appropriate build string" >&5
$as_echo_n "checking for appropriate build string... " >&6; }
build_type=`$ac_confdir/config/build-type $with_build $btargs`
-if test "$non_standard_build_profile" = yes; then
+if test "$custom_build_profile" = yes; then
if test "$with_build" = default; then
build_type=`$ac_confdir/config/build-type custom $btargs`
fi
$as_echo "this one (user-specified)" >&6; }
fi
+# Unpack standard build types. Any particular options can be overriden with
+# --enable/disable-X options
case "$with_build" in
- production)
+ production) # highly optimized, no assertions, no tracing
CVC4CPPFLAGS=
CVC4CXXFLAGS=-O3
CVC4LDFLAGS=
if test -z "${enable_tracing+set}" ; then enable_tracing=no ; fi
if test -z "${enable_muzzle+set}" ; then enable_muzzle=no ; fi
;;
- debug)
+ debug) # Unoptimized, debug symbols, assertions, tracing
CVC4CPPFLAGS=-DCVC4_DEBUG
CVC4CXXFLAGS='-O0 -fno-inline -ggdb3'
CVC4LDFLAGS=
if test -z "${enable_tracing+set}" ; then enable_tracing=yes ; fi
if test -z "${enable_muzzle+set}" ; then enable_muzzle=no ; fi
;;
- default)
+ default) # moderately optimized, assertions, tracing
CVC4CPPFLAGS=
CVC4CXXFLAGS=-O2
CVC4LDFLAGS=
if test -z "${enable_tracing+set}" ; then enable_tracing=yes ; fi
if test -z "${enable_muzzle+set}" ; then enable_muzzle=no ; fi
;;
- competition)
+ competition) # maximally optimized, no assertions, no tracing, muzzled
CVC4CPPFLAGS=
CVC4CXXFLAGS='-O9 -funroll-all-loops -fexpensive-optimizations -fno-enforce-eh-specs'
CVC4LDFLAGS=
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to optimize libcvc4" >&5
$as_echo_n "checking whether to optimize libcvc4... " >&6; }
+
# Check whether --enable-optimized was given.
if test "${enable_optimized+set}" = set; then :
enableval=$enable_optimized;
fi
+
if test -z "${enable_optimized+set}"; then
enable_optimized=no
fi
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_optimized" >&5
$as_echo "$enable_optimized" >&6; }
+
if test "$enable_optimized" = yes; then
CVC4CXXFLAGS="$CVC4CXXFLAGS -O3"
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include debugging symbols in libcvc4" >&5
$as_echo_n "checking whether to include debugging symbols in libcvc4... " >&6; }
+
# Check whether --enable-debug-symbols was given.
if test "${enable_debug_symbols+set}" = set; then :
enableval=$enable_debug_symbols;
fi
+
if test -z "${enable_debug_symbols+set}"; then
enable_debug_symbols=yes
fi
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug_symbols" >&5
$as_echo "$enable_debug_symbols" >&6; }
+
if test "$enable_debug_symbols" = yes; then
CVC4CXXFLAGS="$CVC4CXXFLAGS -ggdb3"
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include assertions in build" >&5
$as_echo_n "checking whether to include assertions in build... " >&6; }
+
# Check whether --enable-assertions was given.
if test "${enable_assertions+set}" = set; then :
enableval=$enable_assertions;
fi
+
if test -z "${enable_assertions+set}"; then
enable_assertions=yes
fi
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_assertions" >&5
$as_echo "$enable_assertions" >&6; }
+
if test "$enable_assertions" = yes; then
CVC4CPPFLAGS="$CVC4CPPFLAGS -DCVC4_ASSERTIONS"
fi
enableval=$enable_tracing;
fi
+
if test -z "${enable_tracing+set}"; then
enable_tracing=yes
fi
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_tracing" >&5
$as_echo "$enable_tracing" >&6; }
+
if test "$enable_tracing" = yes; then
CVC4CPPFLAGS="$CVC4CPPFLAGS -DCVC4_TRACING"
fi
enableval=$enable_muzzle;
fi
+
if test -z "${enable_muzzle+set}"; then
enable_muzzle=no
fi
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_muzzle" >&5
$as_echo "$enable_muzzle" >&6; }
+
if test "$enable_muzzle" = yes; then
CVC4CPPFLAGS="$CVC4CPPFLAGS -DCVC4_MUZZLE"
fi
enableval=$enable_coverage;
fi
+
if test -z "${enable_coverage+set}"; then
enable_coverage=no
fi
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_coverage" >&5
$as_echo "$enable_coverage" >&6; }
+
if test "$enable_coverage" = yes; then
CVC4CXXFLAGS="$CVC4CXXFLAGS --coverage"
CVC4LDFLAGS="$CVC4LDFLAGS --coverage"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to do a profiling-enabled build of CVC4" >&5
$as_echo_n "checking whether to do a profiling-enabled build of CVC4... " >&6; }
+
# Check whether --enable-profiling was given.
if test "${enable_profiling+set}" = set; then :
enableval=$enable_profiling;
fi
+
if test -z "${enable_profiling+set}"; then
enable_profiling=no
fi
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_profiling" >&5
$as_echo "$enable_profiling" >&6; }
+
if test "$enable_profiling" = yes; then
CVC4CXXFLAGS="$CVC4CXXFLAGS -pg"
CVC4LDFLAGS="$CVC4LDFLAGS -pg"
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${LDFLAGS-none}" >&5
$as_echo "${LDFLAGS-none}" >&6; }
+# Initialize libtools configuration options.
+
enable_win32_dll=yes
case $host in
+
case `pwd` in
*\ * | *\ *)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
else
lt_cv_nm_interface="BSD nm"
echo "int some_variable = 0;" > conftest.$ac_ext
- (eval echo "\"\$as_me:5407: $ac_compile\"" >&5)
+ (eval echo "\"\$as_me:5459: $ac_compile\"" >&5)
(eval "$ac_compile" 2>conftest.err)
cat conftest.err >&5
- (eval echo "\"\$as_me:5410: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
+ (eval echo "\"\$as_me:5462: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
cat conftest.err >&5
- (eval echo "\"\$as_me:5413: output\"" >&5)
+ (eval echo "\"\$as_me:5465: output\"" >&5)
cat conftest.out >&5
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
lt_cv_nm_interface="MS dumpbin"
;;
*-*-irix6*)
# Find out which ABI we are using.
- echo '#line 6616 "configure"' > conftest.$ac_ext
+ echo '#line 6668 "configure"' > conftest.$ac_ext
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
(eval $ac_compile) 2>&5
ac_status=$?
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:8084: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:8136: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
- echo "$as_me:8088: \$? = $ac_status" >&5
+ echo "$as_me:8140: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings other than the usual output.
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:8423: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:8475: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
- echo "$as_me:8427: \$? = $ac_status" >&5
+ echo "$as_me:8479: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings other than the usual output.
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:8528: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:8580: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
- echo "$as_me:8532: \$? = $ac_status" >&5
+ echo "$as_me:8584: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext
then
# The compiler can only warn and ignore the option if not recognized
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:8583: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:8635: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
- echo "$as_me:8587: \$? = $ac_status" >&5
+ echo "$as_me:8639: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext
then
# The compiler can only warn and ignore the option if not recognized
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 10966 "configure"
+#line 11018 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 11062 "configure"
+#line 11114 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
-
# Checks for programs.
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:14618: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:14669: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
- echo "$as_me:14622: \$? = $ac_status" >&5
+ echo "$as_me:14673: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings other than the usual output.
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:14717: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:14768: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
- echo "$as_me:14721: \$? = $ac_status" >&5
+ echo "$as_me:14772: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext
then
# The compiler can only warn and ignore the option if not recognized
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:14769: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:14820: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
- echo "$as_me:14773: \$? = $ac_status" >&5
+ echo "$as_me:14824: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext
then
# The compiler can only warn and ignore the option if not recognized
fi
+
if test -z "$DOXYGEN"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: documentation targets require doxygen. Set your PATH appropriately or set DOXYGEN to point to a valid doxygen binary." >&5
$as_echo "$as_me: WARNING: documentation targets require doxygen. Set your PATH appropriately or set DOXYGEN to point to a valid doxygen binary." >&2;}
+
+
# Check whether --with-cxxtest-dir was given.
if test "${with_cxxtest_dir+set}" = set; then :
withval=$with_cxxtest_dir; CXXTEST="$withval"
CXXTEST=
fi
fi
+
if test -n "$CXXTESTGEN"; then
HAVE_CXXTESTGEN_TRUE=
HAVE_CXXTESTGEN_FALSE='#'
+
+
if test -n "$CXXTEST"; then
- # Extract the first word of "perl", so it can be a program name with args.
-set dummy perl; ac_word=$2
+ if test -z "$PERL"; then
+ for ac_prog in perl
+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 test "${ac_cv_prog_PERL+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$PERL"; then
+ ac_cv_prog_PERL="$PERL" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_PERL="$ac_prog"
+ $as_echo "$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
+PERL=$ac_cv_prog_PERL
+if test -n "$PERL"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
+$as_echo "$PERL" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ test -n "$PERL" && break
+done
+test -n "$PERL" || PERL="perl"
+
+ else
+ # Extract the first word of ""$PERL"", so it can be a program name with args.
+set dummy "$PERL"; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if test "${ac_cv_prog_PERL+set}" = set; then :
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_prog_PERL="perl"
+ ac_cv_prog_PERL=""$PERL""
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
fi
fi
+ fi
+
if test -z "$PERL"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unit tests disabled, perl not found." >&5
$as_echo "$as_me: WARNING: unit tests disabled, perl not found." >&2;}
-
# Checks for header files.
for ac_header in getopt.h unistd.h
do :
# Checks for library functions.
+# (empty)
# Some definitions for config.h
+# (empty)
# Prepare configure output
+
if test "$user_cppflags" = no; then
CPPFLAGS="$CVC4CPPFLAGS"
fi
# Final information to the user
-non_standard=
-if test "$non_standard_build_profile" = yes; then
+if test "$custom_build_profile" = yes; then
if test "$with_build" = default; then
with_build=custom
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5
$as_echo "$as_me: WARNING: " >&2;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This is a non-standard $with_build build profile." >&5
-$as_echo "$as_me: WARNING: This is a non-standard $with_build build profile." >&2;}
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This is a customized $with_build build profile." >&5
+$as_echo "$as_me: WARNING: This is a customized $with_build build profile." >&2;}
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5
$as_echo "$as_me: WARNING: " >&2;}
- non_standard=-custom
+ with_build="$with_build-custom"
fi
fi
CVC4 $VERSION
-Build profile: $with_build$non_standard
+Build profile: $with_build
Build ID : $build_type
Optimized : $enable_optimized
Debug symbols: $enable_debug_symbols
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5
$as_echo "$as_me: WARNING: " >&2;}
fi
-
-if test "$non_standard_build_profile" = yes; then
- if test "$with_build" = default; then :; else
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5
-$as_echo "$as_me: WARNING: " >&2;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This is a non-standard $with_build build profile." >&5
-$as_echo "$as_me: WARNING: This is a non-standard $with_build build profile." >&2;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5
-$as_echo "$as_me: WARNING: " >&2;}
- fi
-fi
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
+dnl Preprocess CL args. Defined in config/cvc4.m4
CVC4_AC_INIT
AC_PREREQ(2.64)
AC_CONFIG_MACRO_DIR([config])
CVC4_RELEASE=prerelease
+
+# Libtool version numbers for libraries
+# Version numbers are in the form current:revision:age
+#
+# current -
+# increment if interfaces have been added, removed or changed
+# revision -
+# increment if source code has changed
+# set to zero if current is incremented
+# age -
+# increment if interfaces have been added
+# set to zero if interfaces have been removed
+# or changed
+#
+# For more information, see:
+# http://www.gnu.org/software/libtool/manual/libtool.html#Versioning
+# For guidance on when to change the version number, refer to the
+# developer's guide.
+
CVC4_LIBRARY_RELEASE_CODE=0:0:0
CVC4_LIBRARY_VERSION=0:0:0
CVC4_PARSER_LIBRARY_VERSION=0:0:0
# Features requested by the user
AC_MSG_CHECKING([for requested build profile])
-AC_ARG_WITH([build], [AS_HELP_STRING([--with-build=profile], [for profile in {production,debug,default,competition}])])
+AC_ARG_WITH([build],
+ [AS_HELP_STRING([--with-build=profile],
+ [for profile in {production,debug,default,competition}])])
+
if test -z "${with_build+set}" -o "$with_build" = default; then
with_build=default
fi
if test -z "${enable_optimized+set}" -a -z "${enable_debug_symbols+set}" -a -z "${enable_assertions+set}" -a -z "${enable_tracing+set}" -a -z "${enable_muzzle+set}" -a -z "${enable_coverage+set}" -a -z "${enable_profiling+set}"; then
- non_standard_build_profile=no
+ custom_build_profile=no
else
- non_standard_build_profile=yes
+ custom_build_profile=yes
fi
btargs=
if test -n "${enable_optimized+set}"; then
AC_MSG_CHECKING([for appropriate build string])
build_type=`$ac_confdir/config/build-type $with_build $btargs`
-if test "$non_standard_build_profile" = yes; then
+if test "$custom_build_profile" = yes; then
if test "$with_build" = default; then
build_type=`$ac_confdir/config/build-type custom $btargs`
fi
AC_MSG_RESULT([this one (user-specified)])
fi
+# Unpack standard build types. Any particular options can be overriden with
+# --enable/disable-X options
case "$with_build" in
- production)
+ production) # highly optimized, no assertions, no tracing
CVC4CPPFLAGS=
CVC4CXXFLAGS=-O3
CVC4LDFLAGS=
if test -z "${enable_tracing+set}" ; then enable_tracing=no ; fi
if test -z "${enable_muzzle+set}" ; then enable_muzzle=no ; fi
;;
- debug)
+ debug) # Unoptimized, debug symbols, assertions, tracing
CVC4CPPFLAGS=-DCVC4_DEBUG
CVC4CXXFLAGS='-O0 -fno-inline -ggdb3'
CVC4LDFLAGS=
if test -z "${enable_tracing+set}" ; then enable_tracing=yes ; fi
if test -z "${enable_muzzle+set}" ; then enable_muzzle=no ; fi
;;
- default)
+ default) # moderately optimized, assertions, tracing
CVC4CPPFLAGS=
CVC4CXXFLAGS=-O2
CVC4LDFLAGS=
if test -z "${enable_tracing+set}" ; then enable_tracing=yes ; fi
if test -z "${enable_muzzle+set}" ; then enable_muzzle=no ; fi
;;
- competition)
+ competition) # maximally optimized, no assertions, no tracing, muzzled
CVC4CPPFLAGS=
CVC4CXXFLAGS='-O9 -funroll-all-loops -fexpensive-optimizations -fno-enforce-eh-specs'
CVC4LDFLAGS=
esac
AC_MSG_CHECKING([whether to optimize libcvc4])
-AC_ARG_ENABLE([optimized], [AS_HELP_STRING([--enable-optimized], [optimize the build])])
+
+AC_ARG_ENABLE([optimized],
+ [AS_HELP_STRING([--enable-optimized],
+ [optimize the build])])
+
if test -z "${enable_optimized+set}"; then
enable_optimized=no
fi
+
AC_MSG_RESULT([$enable_optimized])
+
if test "$enable_optimized" = yes; then
CVC4CXXFLAGS="$CVC4CXXFLAGS -O3"
fi
AC_MSG_CHECKING([whether to include debugging symbols in libcvc4])
-AC_ARG_ENABLE([debug-symbols], [AS_HELP_STRING([--disable-debug-symbols], [do not include debug symbols in libcvc4])])
+
+AC_ARG_ENABLE([debug-symbols],
+ [AS_HELP_STRING([--disable-debug-symbols],
+ [do not include debug symbols in libcvc4])])
+
if test -z "${enable_debug_symbols+set}"; then
enable_debug_symbols=yes
fi
+
AC_MSG_RESULT([$enable_debug_symbols])
+
if test "$enable_debug_symbols" = yes; then
CVC4CXXFLAGS="$CVC4CXXFLAGS -ggdb3"
fi
AC_MSG_CHECKING([whether to include assertions in build])
-AC_ARG_ENABLE([assertions], [AS_HELP_STRING([--disable-assertions], [turn off assertions in build])])
+
+AC_ARG_ENABLE([assertions],
+ [AS_HELP_STRING([--disable-assertions],
+ [turn off assertions in build])])
+
if test -z "${enable_assertions+set}"; then
enable_assertions=yes
fi
+
AC_MSG_RESULT([$enable_assertions])
+
if test "$enable_assertions" = yes; then
CVC4CPPFLAGS="$CVC4CPPFLAGS -DCVC4_ASSERTIONS"
fi
AC_MSG_CHECKING([whether to do a traceable build of CVC4])
-AC_ARG_ENABLE([tracing], [AS_HELP_STRING([--disable-tracing], [remove all tracing code from CVC4])])
+AC_ARG_ENABLE([tracing],
+ [AS_HELP_STRING([--disable-tracing],
+ [remove all tracing code from CVC4])])
+
if test -z "${enable_tracing+set}"; then
enable_tracing=yes
fi
+
AC_MSG_RESULT([$enable_tracing])
+
if test "$enable_tracing" = yes; then
CVC4CPPFLAGS="$CVC4CPPFLAGS -DCVC4_TRACING"
fi
AC_MSG_CHECKING([whether to do a muzzled build of CVC4])
-AC_ARG_ENABLE([muzzle], [AS_HELP_STRING([--enable-muzzle], [completely silence CVC4; remove ALL non-result output from build])])
+AC_ARG_ENABLE([muzzle],
+ [AS_HELP_STRING([--enable-muzzle],
+ [completely silence CVC4; remove ALL non-result output from build])])
+
if test -z "${enable_muzzle+set}"; then
enable_muzzle=no
fi
+
AC_MSG_RESULT([$enable_muzzle])
+
if test "$enable_muzzle" = yes; then
CVC4CPPFLAGS="$CVC4CPPFLAGS -DCVC4_MUZZLE"
fi
AC_MSG_CHECKING([whether to do a gcov-enabled build of CVC4])
-AC_ARG_ENABLE([coverage], [AS_HELP_STRING([--enable-coverage], [build with support for gcov coverage testing])])
+AC_ARG_ENABLE([coverage],
+ [AS_HELP_STRING([--enable-coverage],
+ [build with support for gcov coverage testing])])
+
if test -z "${enable_coverage+set}"; then
enable_coverage=no
fi
+
AC_MSG_RESULT([$enable_coverage])
+
if test "$enable_coverage" = yes; then
CVC4CXXFLAGS="$CVC4CXXFLAGS --coverage"
CVC4LDFLAGS="$CVC4LDFLAGS --coverage"
fi
AC_MSG_CHECKING([whether to do a profiling-enabled build of CVC4])
-AC_ARG_ENABLE([profiling], [AS_HELP_STRING([--enable-profiling], [build with support for gprof profiling])])
+
+AC_ARG_ENABLE([profiling],
+ [AS_HELP_STRING([--enable-profiling],
+ [build with support for gprof profiling])])
+
if test -z "${enable_profiling+set}"; then
enable_profiling=no
fi
+
AC_MSG_RESULT([$enable_profiling])
+
if test "$enable_profiling" = yes; then
CVC4CXXFLAGS="$CVC4CXXFLAGS -pg"
CVC4LDFLAGS="$CVC4LDFLAGS -pg"
if test -z "${LDFLAGS+set}" ; then user_ldflags=no ; else user_ldflags=yes ; fi
AC_MSG_RESULT([${LDFLAGS-none}])
+# Initialize libtools configuration options.
+
_LT_SET_OPTION([LT_INIT],[win32-dll])
-LT_INIT
+dnl defined in config/libtools.m4
+LT_INIT
# Checks for programs.
AC_PROG_CC
AC_PROG_ANTLR
AC_CHECK_PROG(DOXYGEN, doxygen, doxygen, [])
+
if test -z "$DOXYGEN"; then
AC_MSG_WARN([documentation targets require doxygen. Set your PATH appropriately or set DOXYGEN to point to a valid doxygen binary.])
fi
+
AC_ARG_VAR(DOXYGEN, [location of doxygen binary])
AC_SUBST([CXXTEST])
+
AC_ARG_WITH([cxxtest-dir],
[AS_HELP_STRING([--with-cxxtest-dir=DIR], [path to CxxTest installation])],
[CXXTEST="$withval"])
-dnl AC_ARG_VAR(CXXTEST, [path to cxxtest installation])
CXXTESTGEN=
AC_PATH_PROG(CXXTESTGEN, cxxtestgen.pl, [], [$CXXTEST:$PATH])
if test -z "$CXXTESTGEN"; then
CXXTEST=
fi
fi
+
AM_CONDITIONAL([HAVE_CXXTESTGEN], [test -n "$CXXTESTGEN"])
AC_ARG_VAR(TEST_CPPFLAGS, [CXXFLAGS to use when testing (default=$CPPFLAGS)])
AC_ARG_VAR(TEST_CXXFLAGS, [CXXFLAGS to use when testing (default=$CXXFLAGS)])
AC_ARG_VAR(TEST_LDFLAGS, [LDFLAGS to use when testing (default=$LDFLAGS)])
+AC_ARG_VAR(PERL, [PERL interpreter (used when testing)])
+
if test -n "$CXXTEST"; then
- AC_CHECK_PROG(PERL, perl, perl, [])
+ if test -z "$PERL"; then
+ AC_CHECK_PROGS(PERL, perl, perl, [])
+ else
+ AC_CHECK_PROG(PERL, "$PERL", "$PERL", [])
+ fi
+
if test -z "$PERL"; then
AC_MSG_WARN([unit tests disabled, perl not found.])
CXXTESTGEN=
# Check for antlr C++ runtime (defined in config/antlr.m4)
AC_LIB_ANTLR
-
# Checks for header files.
AC_CHECK_HEADERS([getopt.h unistd.h])
AC_TYPE_SIZE_T
# Checks for library functions.
+# (empty)
# Some definitions for config.h
+# (empty)
# Prepare configure output
AC_SUBST(CVC4_LIBRARY_RELEASE_CODE)
AC_SUBST(CVC4_LIBRARY_VERSION)
AC_SUBST(CVC4_PARSER_LIBRARY_VERSION)
+
if test "$user_cppflags" = no; then
CPPFLAGS="$CVC4CPPFLAGS"
fi
# Final information to the user
-non_standard=
-if test "$non_standard_build_profile" = yes; then
+if test "$custom_build_profile" = yes; then
if test "$with_build" = default; then
with_build=custom
else
AC_MSG_WARN([])
- AC_MSG_WARN([This is a non-standard $with_build build profile.])
+ AC_MSG_WARN([This is a customized $with_build build profile.])
AC_MSG_WARN([])
- non_standard=-custom
+ with_build="$with_build-custom"
fi
fi
CVC4 $VERSION
-Build profile: $with_build$non_standard
+Build profile: $with_build
Build ID : $build_type
Optimized : $enable_optimized
Debug symbols: $enable_debug_symbols
AC_MSG_WARN([ $CVC4LDFLAGS])
AC_MSG_WARN([])
fi
-
-if test "$non_standard_build_profile" = yes; then
- if test "$with_build" = default; then :; else
- AC_MSG_WARN([])
- AC_MSG_WARN([This is a non-standard $with_build build profile.])
- AC_MSG_WARN([])
- fi
-fi