--- rpl/configure.ac 2013/03/19 13:14:44 1.61 +++ rpl/configure.ac 2013/03/21 14:13:55 1.62 @@ -21,6 +21,7 @@ OPENSSL=openssl-1.0.1e OPENMOTIF=openmotif-2.3.4 LIBXPM=libXpm-3.5.9 SIGSEGV=libsigsegv-2.11 +ZLIB=zlib-1.2.7 GMP=gmp-5.1.1 MPFR=mpfr-3.1.1 @@ -500,6 +501,10 @@ if test ! -d tools/$OPENSSL; then gunzip -c "$srcdir"/tools/$OPENSSL.tar.gz | \ (cd tools && tar -xf -) fi +if test ! -d tools/$ZLIB; then + gunzip -c "$srcdir"/tools/$ZLIB.tar.gz | \ + (cd tools && tar -xf - && cd $ZLIB && ./configure --static) +fi if test ! -d rplcas; then mkdir rplcas fi @@ -1356,6 +1361,7 @@ AC_SUBST(PARI) AC_SUBST(GIAC) AC_SUBST(INCMOTIF) AC_SUBST(LIBMOTIF) +AC_SUBST(ZLIB) AC_SUBST(CFLAGS) AC_SUBST(CXXFLAGS) @@ -1381,14 +1387,6 @@ if test $RECURSIVE = yes; then AC_CONFIG_SUBDIRS(tools/$SIGSEGV) fi -if test x$MYSQL_LIB = x"yes" -o x$POSTGRESQL_LIB = x"yes"; then - ZLIB=-lz -else - ZLIB= -fi - -AC_SUBST(ZLIB) - AC_CONFIG_FILES(Makefile) AC_CONFIG_FILES(HEADER) AC_CONFIG_FILES(tools/Makefile)