cvs: pecl /PECL_Gen Extension.php

From: Date: Thu, 09 Jun 2005 18:08:09 +0000
Subject: cvs: pecl /PECL_Gen Extension.php
Groups: php.pecl.cvs 
Request: Send a blank email to pecl-cvs+get-3252@lists.php.net to get a copy of this message
hholzgra Thu Jun 9 14:08:09 2005 EDT Modified files: /pecl/PECL_Gen Extension.php Log: recognize added C++ source files as buildfiles http://cvs.php.net/diff.php/pecl/PECL_Gen/Extension.php?r1=1.24&r2=1.25&ty=u Index: pecl/PECL_Gen/Extension.php diff -u pecl/PECL_Gen/Extension.php:1.24 pecl/PECL_Gen/Extension.php:1.25 --- pecl/PECL_Gen/Extension.php:1.24 Tue Jun 7 20:03:44 2005 +++ pecl/PECL_Gen/Extension.php Thu Jun 9 14:08:07 2005 @@ -16,7 +16,7 @@ // | Authors: Hartmut Holzgraefe <hholzgra@php.net> | // +----------------------------------------------------------------------+ // -// $Id: Extension.php,v 1.24 2005/06/08 00:03:44 hholzgra Exp $ +// $Id: Extension.php,v 1.25 2005/06/09 18:08:07 hholzgra Exp $ // // {{{ includes @@ -49,7 +49,7 @@ * A class that generates PECL extension soure and documenation files * * @access public - * @version $Id: Extension.php,v 1.24 2005/06/08 00:03:44 hholzgra Exp $ + * @version $Id: Extension.php,v 1.25 2005/06/09 18:08:07 hholzgra Exp $ */ class PECL_Gen_Extension @@ -568,9 +568,6 @@ $ext = $pathinfo["extension"]; switch ($ext) { - case 'cpp': - case 'cxx': - case 'c++': case 'h': case 'hpp': case 'hxx': @@ -580,18 +577,20 @@ break; case 'c': $this->add_configfragment("AC_PROG_CC"); - $this->add_package_file('c', $filename); - break; + return $this->add_package_file('c', $filename); + case 'cpp': + case 'cxx': + case 'c++': + $this->add_configfragment("AC_PROG_CXX"); + return $this->add_package_file('c', $filename); case 'l': case 'flex': $this->add_configfragment("AM_PROG_LEX"); - $this->add_package_file('c', $filename); - break; + return $this->add_package_file('c', $filename); case 'y': case 'bison': $this->add_configfragment("AM_PROG_YACC"); - $this->add_package_file('c', $filename); - break; + return $this->add_package_file('c', $filename); default: break; }

« previous php.pecl.cvs (#3252) next »