cvs commit

From: Date: Tue, 06 Jul 1999 14:27:54 +0000
Subject: cvs commit
Groups: php.dev 
Request: Send a blank email to php-dev+get-8129@lists.php.net to get a copy of this message
From: steinm Date: Tue Jul 6 14:27:54 1999 Modified files: php3/configure.in Log message: - more changes to easy pdflib configuration Index: php3/configure.in diff -u php3/configure.in:1.432 php3/configure.in:1.433 --- php3/configure.in:1.432 Mon Jul 5 11:14:50 1999 +++ php3/configure.in Tue Jul 6 14:27:53 1999 @@ -1,4 +1,4 @@ -dnl $Id: configure.in,v 1.432 1999/07/05 15:14:50 steinm Exp $ +dnl $Id: configure.in,v 1.433 1999/07/06 18:27:53 steinm Exp $ dnl Process this file with autoconf to produce a configure script. AC_INIT(main.c) @@ -1839,7 +1839,7 @@ AC_MSG_CHECKING(whether to include pdflib support) AC_ARG_WITH(pdflib, -[ --with-pdflib[=DIR] Include pdflib support (tested with 0.6). +[ --with-pdflib[=DIR] Include pdflib support (tested with 0.6 and 2.0). DIR is the pdflib install directory, defaults to /usr/local.], [ @@ -1878,9 +1878,9 @@ old_withval=$withval if test -z $ZLIB_LIBS; then - AC_MSG_CHECKING(for zlib needed by pdflib 2.0) + AC_MSG_CHECKING([for zlib (needed by pdflib 2.0)]) AC_ARG_WITH(zlib-dir, - [ --with-zlib-dir=DIR zlib dir],[ + [ --with-zlib-dir[=DIR] zlib dir for pdflib 2.0 or include zlib support],[ AC_MSG_RESULT( ) if test -z $withval; then withval="/usr/local" @@ -1889,6 +1889,7 @@ AC_CHECK_LIB(z,deflate, [PDFLIB_LIBS="-L$withval/lib -lz"],[AC_MSG_RESULT(no)],) ],[ AC_MSG_RESULT(no) + AC_MSG_WARN(Warning! If configure fails try --with-zlib=<DIR>) ]) else echo "checking for libz needed by pdflib 2.0... already zlib support" @@ -1896,9 +1897,9 @@ LIBS="$LIBS $ZLIB_LIBS" fi - AC_MSG_CHECKING(for libjpeg needed by pdflib 2.0) + AC_MSG_CHECKING([for libjpeg (needed by pdflib 2.0)]) AC_ARG_WITH(jpeg-dir, - [ --with-jpeg-dir=DIR jpeg dir],[ + [ --with-jpeg-dir[=DIR] jpeg dir for pdflib 2.0],[ AC_MSG_RESULT(yes) if test -z $withval; then withval="/usr/local" @@ -1907,12 +1908,13 @@ AC_CHECK_LIB(jpeg,jpeg_read_header, [PDFLIB_LIBS="$PDFLIB_LIBS -L$withval/lib -ljpeg"],[AC_MSG_RESULT(no)],) ],[ AC_MSG_RESULT(no) + AC_MSG_WARN(Warning! If configure fails try --with-jpeg-dir=<DIR>) ]) withval=$old_withval - AC_MSG_CHECKING(for libtiff needed by pdflib 2.0) + AC_MSG_CHECKING([for libtiff (needed by pdflib 2.0)]) AC_ARG_WITH(tiff-dir, - [ --with-tiff-dir=DIR tiff dir],[ + [ --with-tiff-dir[=DIR] tiff dir for pdflib 2.0],[ AC_MSG_RESULT(yes) if test -z $withval; then withval="/usr/local" @@ -1921,13 +1923,13 @@ AC_CHECK_LIB(tiff,TIFFOpen, [PDFLIB_LIBS="$PDFLIB_LIBS -L$withval/lib -ltiff"],[AC_MSG_RESULT(no)],) ],[ AC_MSG_RESULT(no) + AC_MSG_WARN(Warning! If configure fails try --with-tiff-dir=<DIR>) ]) withval=$old_withval LIBS="$LIBS -L$withval/lib" AC_CHECK_LIB(pdf, PDF_new, [AC_DEFINE(HAVE_PDFLIB) AC_DEFINE(HAVE_PDFLIB2) PDFLIB_LIBS="$PDFLIB_LIBS -L$withval/lib -lpdf"], - [AC_MSG_ERROR(Check if zlib libjpeg, libtiff has been found. -If not specify --with-zlib-dir and --with-tiff-dir.)]) + [AC_MSG_ERROR(Check if zlib libjpeg and libtiff has been found. If not specify --with-zlib-dir=<DIR> --with-jpeg-dir=<DIR> and --with-tiff-dir=<DIR>.)]) LIBS=$old_LIBS else AC_MSG_RESULT(no)

« previous php.dev (#8129) next »