PHP 4.0 Bug #7003: configure not setting -L for extras (like png, tiff, etc.)

From: Date: Wed, 04 Oct 2000 05:15:11 +0000
Subject: PHP 4.0 Bug #7003: configure not setting -L for extras (like png, tiff, etc.)
Groups: php.dev 
Request: Send a blank email to php-dev+get-34177@lists.php.net to get a copy of this message
From: swenson@heronetwork.com Operating system: OpenBSD 2.7 & SuSE PHP version: 4.0.2 PHP Bug Type: Compile Problem Bug description: configure not setting -L for extras (like png, tiff, etc.) After unpacking the distribution running ./configure with any of these options: --with-png-dir[=DIR] --with-tiff-dir[=DIR] --with-mm[=DIR] The configure script is failing to find libgd, libpng, etc. After examining the configure script and the config.log I found that for these options: --with-ds-dir[=DIR] --with-jpeg-dir[=DIR] The $LIBS variable is getting properly set to "-L[DIR] -l<option>". But, for the above options (and a few more I think) the $LIBS variable is only getting set to "-l<option>". So when configure attempts to confirm the option is present it 'ld' can not find the library and the option is not activated. The easiest work around is to copy the apropriate libs into /usr/lib temporarily for the compile. Another work around is to edit the configure script and find all the places '[=DIR]' is not getting included and adding the '-L' option to the $LIBS variable.

« previous php.dev (#34177) next »