ID:               39591
 Updated by:       [EMAIL PROTECTED]
 Reported By:      nick dot ferszt at ga dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         *Compile Issues
 Operating System: OS X 10.3.9
 PHP Version:      5.2.0
 New Comment:

Please put your configure somewhere and post the URL here.


Previous Comments:
------------------------------------------------------------------------

[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

Reply via email to