[Rd] HAVE_BZLIB_H not set

From: Tom \ <tcallawa_at_redhat.com>
Date: Sun, 26 Oct 2008 12:02:00 -0400


When building 2.8.0 this morning for Fedora, I noticed that it was building the included bzlib2 source and using it rather than the system bzip2 libraries and headers. I tracked down the reason to this section of configure:

cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */

#ifdef HAVE_BZLIB_H
#include <bzlib.h>
#endif

int main() {

    char *ver = BZ2_bzlibVersion();
    exit(strcmp(ver, "1.0.5") < 0);
}

_ACEOF That code wasn't working at all because HAVE_BZLIB_H never gets set anywhere, even though the configure script had found the system bzip2 bits. This patch adds it to m4/R.m4 and configure, against 2.8.0. With the patch, R now properly detects bzip2 1.0.5 in Fedora and uses that rather than the local copy.

~spot



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Sun 26 Oct 2008 - 16:06:40 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 27 Oct 2008 - 05:30:28 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive