From: Ivan Maidanski Date: Tue, 27 Jun 2017 21:33:11 +0000 (+0300) Subject: Imply configure --single-obj-compilation if --disable-static X-Git-Tag: v8.0.0~662 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d033a662866a571b4a041c66193183a4215da0e0;p=gc 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. --- 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]))