]> granicus.if.org Git - gc/commitdiff
Imply configure --single-obj-compilation if --disable-static
authorIvan Maidanski <ivmai@mail.ru>
Tue, 27 Jun 2017 21:33:11 +0000 (00:33 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 27 Jun 2017 21:33:11 +0000 (00:33 +0300)
* 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.

configure.ac

index 5f6b791fcb80652a55f6fb6d768305e276a7dea6..7db6fbb712c0df9ae5f7ca43fc9eb32d042f9b26 100644 (file)
@@ -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]))