diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2017-06-28 00:33:11 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2017-06-28 00:33:11 +0300 |
commit | d033a662866a571b4a041c66193183a4215da0e0 (patch) | |
tree | 0fc259e68beb710bc7624fcd4d9618dcffc082cd /configure.ac | |
parent | 360407b2586eb6a612cff3863f0286b133bdc197 (diff) | |
download | bdwgc-d033a662866a571b4a041c66193183a4215da0e0.tar.gz |
Imply configure --single-obj-compilation if --disable-static
* configure.ac (single-obj-compilation): Set default value to yes
if enable_static=no; update help message.
* configure.ac (single_obj_compilation): Rename variable to
enable_single_obj_compilation.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index 5f6b791f..7db6fbb7 100644 --- a/configure.ac +++ b/configure.ac @@ -941,9 +941,12 @@ AC_SUBST([WERROR_CFLAGS]) AC_ARG_ENABLE(single-obj-compilation, [AC_HELP_STRING([--enable-single-obj-compilation], - [Compile all library .c files into single .o])], - [single_obj_compilation=yes]) -AM_CONDITIONAL([SINGLE_GC_OBJ], [test "$single_obj_compilation" = "yes"]) + [Compile all libgc source files into single .o + (default: yes if static libraries are disabled)])], + [], [ AS_IF([test x"$enable_static" = xno], + [enable_single_obj_compilation=yes]) ]) +AM_CONDITIONAL([SINGLE_GC_OBJ], + [test x"$enable_single_obj_compilation" = xyes]) AC_ARG_ENABLE(gcov, AC_HELP_STRING([--enable-gcov], [Turn on code coverage analysis])) |