[BioC] affy installation problem

Claudio Lottaz Claudio.Lottaz at molgen.mpg.de
Mon Jun 21 20:58:33 CEST 2004


Hi all,

I encountered the following difficulty to install affy on our alpha
installation:
configure did not find zlib because the include is not located in
/usr/includes.
We have fixed this by adding /usr/local/includes as CFLAGS to the aclocal.m4
file (see below).

I am not sure whether this is the proper way of dealing with this. If yes,
the authors may consider to include the attached aclocal.m4 to the
distribution.

Cheers
Claudio

aclocal.m4:

##
## Try finding zlib library and headers
##
## R_ZLIB()
##
AC_DEFUN([R_ZLIB], [
CPPFLAGS=-I/usr/local/include
CFLAGS=-I/usr/local/include
  have_zlib=no
  AC_CHECK_LIB(z, main, [
    AC_CHECK_HEADER(zlib.h, [
      AC_MSG_CHECKING([if zlib version >= 1.1.3])
      AC_TRY_RUN([
#include "confdefs.h"
#include <string.h>
#include <zlib.h>
int main() {
#ifdef ZLIB_VERSION
  return(strcmp(ZLIB_VERSION, "1.1.3") < 0);
#else
  return(1);
#endif
}],     [AC_MSG_RESULT([yes])
          have_zlib=yes],
        AC_MSG_RESULT([no]),
        AC_MSG_RESULT([no]))
    ])
  ])
  if test "${have_zlib}" = yes; then
    AC_DEFINE(HAVE_ZLIB)
    LIBS='-lz '$LIBS
  fi
])



More information about the Bioconductor mailing list