|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-06-26 13:07 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 23:00:01 2025 UTC |
Description: ------------ When libtiff and libjpeg are in different directories compared to clibpdf and a path is given to all three configure fails to find clibpdf although it exists. (It only searches in the libtiff for some reason, it seems to mangle the paths that are given). This fixes it for me, however it seems like it is a gross hack. A guess is that CPDF_TIFF_TEST mangles the path. --- ext/cpdf/config.m4.orig Thu Jun 19 09:57:51 2003 +++ ext/cpdf/config.m4 Thu Jun 19 21:00:00 2003 @@ -63,10 +63,12 @@ if test "$withval" = "no"; then AC_MSG_RESULT(no) else + old_withval=$withval AC_MSG_RESULT(yes) PHP_NEW_EXTENSION(cpdf, cpdf.c) CPDF_JPEG_TEST CPDF_TIFF_TEST + withval=$old_withval for i in $withval /usr /usr/local; do if test -f "$i/include/cpdflib.h"; then CPDFLIB_INCLUDE=$i/include Reproduce code: --------------- Fill in the variables with paths. ./configure --prefix=%{_prefix} \ --enable-ftp \ --enable-versioning \ --with-config-file-path=/env/%{module} \ --with-apxs=$APACHE/bin/apxs \ --enable-pear \ --disable-short-tags \ --enable-bcmath \ --enable-memory-limit \ --with-db3=$DB3 \ --with-ldap=$OPENLDAP \ --with-mhash=$MHASH \ --enable-track-vars \ --enable-trans-sid \ --enable-calendar \ --with-unixODBC=$UNIXODBC \ --with-mysql=$MYSQL \ --with-imap=$IMAP \ --with-imap-ssl=$OPENSSL \ --with-gd=$GD \ --with-jpeg-dir=$LIBJPEG \ --with-png-dir=$LIBPNG \ --with-zlib=$ZLIB \ --with-gettext=$GETTEXT \ --with-tiff-dir=$LIBTIFF \ --with-cpdflib=$CLIBPDF \ --with-xpm-dir=$XPM \ --with-readline=$READLINE \ --with-openssl=$OPENSSL \ --with-bz2=$BZIP2 \ --with-gmp=$GMP \ --with-freetype-dir=$FREETYPE \ --with-gdbm=$GDBM Expected result: ---------------- Configure complete and ready to make. Actual result: -------------- configure fails to find clibpdf.