]> granicus.if.org Git - gc/commit
Compile checksums.c only if --with-checksums is given (configure)
authorIvan Maidanski <ivmai@mail.ru>
Fri, 9 Jun 2017 16:42:54 +0000 (19:42 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 9 Jun 2017 16:42:54 +0000 (19:42 +0300)
commitbfd8345dce69ea363a25a5824c7544db3b4aa8ce
tree6d40a9aacec9611ac0a3e7f823a363a1489d52a2
parent4530166b0b4befe5e9a68be632c847b95aaf7627
Compile checksums.c only if --with-checksums is given (configure)

New configure option (--with-checksums) is added, mainly to workaround
'checksums.a has no symbols' link warning (observed on Darwin).

* Makefile.am [!SINGLE_GC_OBJ] (libgc_la_SOURCES): Do not add checksums.c
unless CHECKSUMS.
* configure.ac (checksums): New AC_ARG_WITH.
* configure.ac [with_checksums && (enable_munmap || THREADS!=none)]:
Issue AC_MSG_ERROR.
* configure.ac (CHECKSUMS): New AC_DEFINE and AM_CONDITIONAL if
with_checksums.
Makefile.am
configure.ac