<?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 => 'ja',
  ),
  'this' => 
  array (
    0 => 'install.pecl.php-config.php',
    1 => 'php-config',
    2 => 'php-config',
  ),
  'up' => 
  array (
    0 => 'install.pecl.php',
    1 => 'PECL 拡張モジュールのインストール',
  ),
  'prev' => 
  array (
    0 => 'install.pecl.phpize.php',
    1 => 'phpize で共有 PECL 拡張モジュールをコンパイルする方法',
  ),
  'next' => 
  array (
    0 => 'install.pecl.static.php',
    1 => 'PECL 拡張モジュールを PHP に静的に組み込む',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'ja',
    '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.php-config" class="sect1">
  <h2 class="title">
   <strong class="command">php-config</strong>
  </h2>
  
  <p class="para">
   <strong class="command">php-config</strong> はシンプルなシェルスクリプトで、
   インストールされている PHP の設定情報を取得します。
  </p>

  <p class="para">
   拡張モジュールをコンパイルするときに、もし複数のバージョンの PHP
   がインストールされている場合は、どちらを使ってコンパイルするのかを指定できます。
   configure の <strong class="option configure">--with-php-config</strong> オプションで、
   対応する <strong class="command">php-config</strong> スクリプトのパスを指定します。
  </p>
  
  <p class="para">
   <strong class="command">php-config</strong> スクリプトのコマンドラインオプション一覧は、
   <strong class="command">php-config</strong> に <strong class="option unknown">-h</strong> スイッチをつけて実行すれば見られます。
   <div class="example-contents screen">
<div class="cdata"><pre>
Usage: /usr/local/bin/php-config [OPTION]
Options:
  --prefix            [...]
  --includes          [...]
  --ldflags           [...]
  --libs              [...]
  --extension-dir     [...]
  --include-dir       [...]
  --php-binary        [...]
  --php-sapis         [...]
  --configure-options [...]
  --version           [...]
  --vernum            [...]
</pre></div>
   </div>
  </p>
  
  <p class="para">
   <table class="doctable table">
    <caption><strong>コマンドラインオプション</strong></caption>
    
     <thead>
      <tr>
       <th>オプション</th>
       <th>説明</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td>--prefix</td>
       <td>PHP のインストール先ディレクトリのプレフィックス。例: /usr/local</td>
      </tr>

      <tr>
       <td>--includes</td>
       <td>
        <code class="literal">-I</code> オプションとインクルードしたファイルの一覧
       </td>
      </tr>

      <tr>
       <td>--ldflags</td>
       <td>
        PHP をコンパイルしたときの <code class="literal">LD</code> フラグ
       </td>
      </tr>

      <tr>
       <td>--libs</td>
       <td>PHP をコンパイルしたときの外部ライブラリ</td>
      </tr>

      <tr>
       <td>--extension-dir</td>
       <td>拡張モジュールを探すときのデフォルトのディレクトリ</td>
      </tr>

      <tr>
       <td>--include-dir</td>
       <td>
        ヘッダファイルのデフォルトのインストール先ディレクトリのプレフィックス
       </td>
      </tr>

      <tr>
       <td>--php-binary</td>
       <td>CLI あるいは CGI バイナリへのフルパス</td>
      </tr>

      <tr>
       <td>--php-sapis</td>
       <td>使用できるすべての SAPI モジュール</td>
      </tr>

      <tr>
       <td>--configure-options</td>
       <td>
        現在インストールされている PHP の再作成するための configure オプション
       </td>
      </tr>

      <tr>
       <td>--version</td>
       <td>PHP のバージョン</td>
      </tr>

      <tr>
       <td>--vernum</td>
       <td>PHP のバージョンを整数値で表したもの</td>
      </tr>

     </tbody>
    
   </table>

  </p>
 </div><?php manual_footer($setup); ?>