]> granicus.if.org Git - php/commitdiff
MFH:- Fixed bug #42195 (C++ compiler required always)
authorJani Taskinen <jani@php.net>
Mon, 6 Aug 2007 14:33:51 +0000 (14:33 +0000)
committerJani Taskinen <jani@php.net>
Mon, 6 Aug 2007 14:33:51 +0000 (14:33 +0000)
NEWS
configure.in
scripts/phpize.m4

diff --git a/NEWS b/NEWS
index 7a3092eb8069865fde6dfbfbc88f65a66e9980f4..314af9a364468178c22cbf10880b2c6a5f6164a5 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -3,6 +3,7 @@ PHP                                                                        NEWS
 ?? Aug 2007, PHP 5.2.4
 - Fixed bug #42208 (substr_replace() crashes when the same array is passed 
   more than once). (crrodriguez at suse dot de, Ilia)
+- Fixed bug #42195 (C++ compiler required always). (Jani)
 - Fixed bug #36492 (Userfilters can leak buckets). (Sara)
 
 02 Aug 2007, PHP 5.2.4RC1
index d493c8907c889f0011e3e02de0d332099a0d539a..706c0ed99c2710dab20a1528755b777aaa5d5bce 100644 (file)
@@ -1249,7 +1249,13 @@ PHP_HELP_SEPARATOR([Libtool:])
 PHP_CONFIGURE_PART(Configuring libtool)
 
 LDFLAGS="$LDFLAGS $PHP_AIX_LDFLAGS"
+
+dnl Only allow AC_PROG_CXX if it's explicitly called (by PHP_REQUIRE_CXX)
+dnl otherwise AC_PROG_LIBTOOL fails if there is no working C++ compiler
+AC_PROVIDE_IFELSE([PHP_REQUIRE_CXX], [AC_PROG_CXX], [undefine([AC_PROG_CXX])
+AC_DEFUN([AC_PROG_CXX], [])])
 AC_PROG_LIBTOOL
+
 if test "$enable_debug" != "yes"; then
   PHP_SET_LIBTOOL_VARIABLE([--silent])
 fi
index be7f436fd2b84e143f4017267b8efa77dce3c92b..6e7a131c37483958d81b9fc75787500fdcb974f9 100644 (file)
@@ -68,6 +68,10 @@ sinclude(config.m4)
 enable_static=no
 enable_shared=yes
 
+dnl Only allow AC_PROG_CXX if it's explicitly called (by PHP_REQUIRE_CXX)
+dnl otherwise AC_PROG_LIBTOOL fails if there is no working C++ compiler
+AC_PROVIDE_IFELSE([PHP_REQUIRE_CXX], [AC_PROG_CXX], [undefine([AC_PROG_CXX])
+AC_DEFUN([AC_PROG_CXX], [])])
 AC_PROG_LIBTOOL
 
 all_targets='$(PHP_MODULES)'