#39591 [Fbk->Opn]: ./configure flag failure
| From: | nick dot ferszt at ga dot com | Date: | Tue, 28 Nov 2006 14:48:47 +0000 |
| Subject: | #39591 [Fbk->Opn]: ./configure flag failure | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-105551@lists.php.net to get a copy of this message | ||
ID: 39591
User updated by: nick dot ferszt at ga dot com
Reported By: nick dot ferszt at ga dot com
-Status: Feedback
+Status: Open
Bug Type: *Compile Issues
Operating System: OS X 10.3.9
PHP Version: 5.2.0
New Comment:
Original configure file from source:
http://www.ga.com/phpbug/configure-original.zip
Configure as modified:
http://www.ga.com/phpbug/5.2-configure-fix.zip
Previous Comments:
------------------------------------------------------------------------
[2006-11-27 15:01:20] tony2001@php.net
No, I mean the configure script itself.
------------------------------------------------------------------------
[2006-11-27 14:30:11] nick dot ferszt at ga dot com
Configure can be found at:
http://home.san.rr.com/factorysix/configure.txt
These configure flages are from the orginal default install of
4.2.x with a few additions. It is quite possible that since
5.2.0 some options have been moved or changed making some
configuration options unnessary.
------------------------------------------------------------------------
[2006-11-22 21:38:29] tony2001@php.net
Please put your configure somewhere and post the URL here.
------------------------------------------------------------------------
[2006-11-22 17:31:56] nick dot ferszt at ga dot com
Description:
------------
When trying to configure 5.2.0 on OS X 10.3.9 I get the
error message(s):
./configure: line 2333: test: =: unary operator expected
expr: syntax error
./configure: line 2339: test: =: unary operator expected
expr: syntax error
etc...
To fix this in configure:
Replace lines 2325-2354 with
for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS CC CXX; do
eval val=\$$var
if test -n "$val"; then
echo "$var='$val' \\" >> config.nice
fi
done
for arg in $0 "$@"; do
echo "'$arg' \\" >> config.nice
CONFIGURE_COMMAND="$CONFIGURE_COMMAND '$arg'"
done
echo '"$@"' >> config.nice
chmod +x config.nice
This solves the problem.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=39591&edit=1