From: mike at clove dot com Operating system: Mac OS X 10.4.11 PHP version: 5.2.5 PHP Bug Type: PHP options/info functions Bug description: libjpeg not found (easily)with --with-gd
Description: ------------ ext/gd/config.m4 contains code which looks for libjpeg.a and libjpeg.<dynamic suffix> in $PHP_JPEG_DIR/$PHP_LIBDIR, /usr/local/$PHP_LIBDIR and /usr/$PHP_LIBDIR. This fails to find libjpeg.<whatever> when libjpeg is loaded onto a mac using macports because it lives in /opt/local/lib. Suggest adding, after line 75: SUP_DIR=`dirname $PHP_JPEG_DIR` and modifying line 76 to read: for i in $PHP_JPEG_DIR $SUP_DIR /usr/local /usr; do Same holds for the libpng search and probably other things. Actually, it would be nice if the script searched /usr/local and /usr libraries if --with-gd were set, rather than having to know that you have to set --with-jpeg-dir=... If there is interest, I can hack the file -- Edit bug report at http://bugs.php.net/?id=44778&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=44778&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=44778&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=44778&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=44778&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=44778&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=44778&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=44778&r=needscript Try newer version: http://bugs.php.net/fix.php?id=44778&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=44778&r=support Expected behavior: http://bugs.php.net/fix.php?id=44778&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=44778&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=44778&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=44778&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=44778&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=44778&r=dst IIS Stability: http://bugs.php.net/fix.php?id=44778&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=44778&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=44778&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=44778&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=44778&r=mysqlcfg
