Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fix cc detection in phpize according to changes in configure.in

  • Loading branch information...
commit 2b830291bbd04a4cd05b2185f2c73346d18e5f9c 1 parent 3fb86b0
David Soria Parra dsp authored

Showing 1 changed file with 14 additions and 1 deletion. Show diff stats Hide diff stats

  1. +14 1 scripts/phpize.m4
15 scripts/phpize.m4
@@ -17,11 +17,15 @@ AC_DEFUN([PHP_ALWAYS_SHARED],[
17 17 test "[$]$1" = "no" && $1=yes
18 18 ])dnl
19 19 dnl
  20 +
  21 +test -z "$CFLAGS" && auto_cflags=1
  22 +
20 23 abs_srcdir=`(cd $srcdir && pwd)`
21 24 abs_builddir=`pwd`
22 25
23   -AC_PROG_CC
  26 +AC_PROG_CC([cc gcc])
24 27 PHP_DETECT_ICC
  28 +PHP_DETECT_SUNCC
25 29 AC_PROG_CC_C_O
26 30
27 31 dnl Support systems with system libraries in e.g. /usr/lib64
@@ -116,6 +120,15 @@ if test "$PHP_DEBUG" = "yes"; then
116 120 CFLAGS="$CFLAGS -O0"
117 121 CXXFLAGS="$CXXFLAGS -O0"
118 122 fi
  123 + if test "$SUNCC" = "yes"; then
  124 + if test -n "$auto_cflags"; then
  125 + CFLAGS="-g"
  126 + CXXFLAGS="-g"
  127 + else
  128 + CFLAGS="$CFLAGS -g"
  129 + CXXFLAGS="$CFLAGS -g"
  130 + fi
  131 + fi
119 132 else
120 133 PHP_DEBUG=0
121 134 ZEND_DEBUG=no

0 comments on commit 2b83029

Please sign in to comment.
Something went wrong with that request. Please try again.