<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/install.pecl.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'uk',
  ),
  'this' => 
  array (
    0 => 'install.pecl.static.php',
    1 => 'Компіляція розширення PECL статично в PHP',
    2 => 'Компіляція розширення PECL статично в PHP',
  ),
  'up' => 
  array (
    0 => 'install.pecl.php',
    1 => 'Встановлення розширень PECL',
  ),
  'prev' => 
  array (
    0 => 'install.pecl.php-config.php',
    1 => 'php-config',
  ),
  'next' => 
  array (
    0 => 'install.composer.intro.php',
    1 => 'Introduction to Composer',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'uk',
    'path' => 'install/pecl.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="install.pecl.static" class="sect1">
  <h2 class="title">Компіляція розширення PECL статично в PHP</h2>
  <p class="simpara">
   Якщо вам потрібно зібрати розширення PECL статично у ваш бінарний файл PHP,
   вам потрібно покласти сирці розширень в директорію
   <var class="filename">/your/phpsrcdir/ext/</var>, та викликати перегенерацію
   конфігураційних скриптів через систему збірки PHP.
  </p>
  <p class="para">
   <div class="example-contents screen">
<div class="cdata"><pre>
$ cd /your/phpsrcdir/ext
$ pecl download extname
$ gzip -d &lt; extname.tgz | tar -xvf -
$ mv extname-x.x.x extname
</pre></div>
   </div>
  </p>
  <p class="simpara">
   В результаті буде створена наступна директорія:
  </p>
  <p class="para">
   <div class="example-contents screen"><br />
    /your/phpsrcdir/ext/extname<br />
   </div>
  </p>
  <p class="simpara">
   Після цього, виконайте заново збірку конфігураційного скрипта PHP,
   а потім зберіть PHP як зазвичай:
  </p>
  <p class="para">
   <div class="example-contents screen"><br />
$ cd /your/phpsrcdir <br />
$ rm configure<br />
$ ./buildconf --force<br />
$ ./configure --help<br />
$ ./configure --with-extname --enable-someotherext --with-foobar<br />
$ make<br />
$ make install<br />
   </div>
  </p>
  <blockquote class="note"><p><strong class="note">Зауваження</strong>: 
   <span class="simpara">
    Щоб запустити скрипт &#039;buildconf&#039;, вам потрібен autoconf 2.13 та automake 1.4+
    (нові версії autoconf можуть працювати, але вони не підтримуються).
   </span>
  </p></blockquote>
  <p class="simpara">
   Чи використовується <code class="literal">--enable-extname</code>, чи
   <code class="literal">--with-extname</code>, залежить від розширень. Зазвичай,
   розширення, які не потребують зовнішніх бібліотек, використовують
   <code class="literal">--enable</code>. Щоб бути впевненим, запустіть наступну команду
   після buildconf:
  </p>
  <p class="para">
   <div class="example-contents screen"><br />
$ ./configure --help | grep extname<br />
   </div>
  </p>
 </div><?php manual_footer($setup); ?>