cvs: phpdoc /en/internals2/buildsys configunix.xml configwin.xml

From: Date: Tue, 29 Apr 2008 14:32:24 +0000
Subject: cvs: phpdoc /en/internals2/buildsys configunix.xml configwin.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-1574@lists.php.net to get a copy of this message
gwynne Tue Apr 29 14:32:24 2008 UTC Modified files: /phpdoc/en/internals2/buildsys configunix.xml configwin.xml Log: updated previously written docs to know about the counter example. Also fix the $ keyword. Depends on a pending PhD bug fix and will look odd until then http://cvs.php.net/viewvc.cgi/phpdoc/en/internals2/buildsys/configunix.xml?r1=1.3&r2=1.4&diff_format=u Index: phpdoc/en/internals2/buildsys/configunix.xml diff -u phpdoc/en/internals2/buildsys/configunix.xml:1.3 phpdoc/en/internals2/buildsys/configunix.xml:1.4 --- phpdoc/en/internals2/buildsys/configunix.xml:1.3 Thu Jun 28 04:45:10 2007 +++ phpdoc/en/internals2/buildsys/configunix.xml Tue Apr 29 14:32:24 2008 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="ISO-8859-1"?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <sect1 xml:id="internals2.buildsys.configunix" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>Talking to the UNIX build system: config.m4</title> <para> @@ -27,7 +27,7 @@ <title>An example config.m4 file</title> <programlisting role="autoconf"> <![CDATA[ -dnl $Id: configunix.xml,v 1.3 2007/06/28 04:45:10 gwynne Exp $ +dnl ]]>&#x24;<![CDATA[Id$ dnl config.m4 for extension example PHP_ARG_WITH(example, for example support, @@ -323,6 +323,36 @@ mode. </para> </sect2> + + <sect2 xml:id="internals2.buildsys.configunix.counter"> + <title>The counter extension's config.m4 file</title> + <para> + The counter extension previously documented has a much simpler + <filename>config.m4</filename> file than that described above, as it doesn't + make use of many buildsystem features. This is a preferred method of + operation for any extension that doesn't use an external or bundled library. + </para> + <example xml:id="internals2.buildsys.configunix.counter.configunix"> + <title>counter's config.m4 file</title> + <programlisting role="autoconf"> +<![CDATA[ +dnl ]]>&#x24;<![CDATA[Id$ +dnl config.m4 for extension counter + +PHP_ARG_ENABLE(counter, for counter support, +[ --enable-counter Include counter support]) + +dnl Check whether the extension is enabled at all +if test "$PHP_COUNTER" != "no"; then + dnl Finally, tell the build system about the extension and what files are needed + PHP_NEW_EXTENSION(counter, counter.c counter_util.c, $ext_shared) + PHP_SUBST(COUNTER_SHARED_LIBADD) +fi +]]> + </programlisting> + </example> + </sect2> + </sect1> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc/en/internals2/buildsys/configwin.xml?r1=1.3&r2=1.4&diff_format=u Index: phpdoc/en/internals2/buildsys/configwin.xml diff -u phpdoc/en/internals2/buildsys/configwin.xml:1.3 phpdoc/en/internals2/buildsys/configwin.xml:1.4 --- phpdoc/en/internals2/buildsys/configwin.xml:1.3 Thu Jun 28 04:45:10 2007 +++ phpdoc/en/internals2/buildsys/configwin.xml Tue Apr 29 14:32:24 2008 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="ISO-8859-1"?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <sect1 xml:id="internals2.buildsys.configwin" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>Talking to the Windows build system: config.w32</title> <para> @@ -16,7 +16,7 @@ <title>An example config.w32 file</title> <programlisting role="javascript"> <![CDATA[ -// $Id: configwin.xml,v 1.3 2007/06/28 04:45:10 gwynne Exp $ +// ]]>&#x24;<![CDATA[Id$ // vim:ft=javascript ARG_WITH("example", "for example support", "no"); @@ -51,6 +51,30 @@ </programlisting> </example> + <sect2 xml:id="internals2.buildsys.configwin.counter"> + <title>The counter extension's config.w32 file</title> + <para> + The counter extension previously documented has a much simpler + <filename>config.w32</filename> file than that described above, as it + doesn't make use of many buildsystem features. + </para> + <example xml:id="internals2.buildsys.configwin.counter.configwin"> + <title>counter's config.w32 file</title> + <programlisting role="autoconf"> +<![CDATA[ +// ]]>&#x24;<![CDATA[Id$ +// vim:ft=javascript + +ARG_ENABLE("counter", "for counter support", "no"); +if (PHP_COUNTER != "no") { + EXTENSION("counter", "counter.c"); + ADD_SOURCE("counter-util.c"); +} +]]> + </programlisting> + </example> + </sect2> + </sect1> <!-- Keep this comment at the end of the file

« previous php.doc.cvs (#1574) next »