<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/configure.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'ja',
  ),
  'this' => 
  array (
    0 => 'configure.about.php',
    1 => '中心となる configure オプションのリスト',
    2 => '中心となる configure オプションのリスト',
  ),
  'up' => 
  array (
    0 => 'configure.php',
    1 => 'Configure オプション',
  ),
  'prev' => 
  array (
    0 => 'configure.php',
    1 => 'Configure オプション',
  ),
  'next' => 
  array (
    0 => 'ini.php',
    1 => 'php.ini ディレクティブ',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'ja',
    'path' => 'appendices/configure/index.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="configure.about" class="sect1">
  <h2 class="title">中心となる configure オプションのリスト</h2>
  <p class="para">
   以下のリストは、Unix 系の環境で PHP をコンパイルする際に用いられる
   <var class="filename">configure</var> スクリプトのオプションの一部です。
   ほとんどのオプションはそれぞれの拡張モジュールのリファレンスページで
   説明されており、ここにはありません。最新の configure オプションの
   完全なリストを得るには、PHP のソースディレクトリで
   <strong class="command">autoconf</strong> を実行した後、<strong class="command">./configure --help</strong>
   を実行してください（<a href="install.php" class="link">インストールと設定</a>
   も参照ください）。<code class="literal">--prefix=PREFIX</code> のような追加の
   <strong class="command">configure</strong> オプションについて興味がある方は、
   <a href="http://www.airs.com/ian/configure/" class="link external">&raquo;&nbsp;GNU configure</a> のドキュメントが
   参考になるでしょう。
  </p>
  
  <blockquote class="note"><p><strong class="note">注意</strong>: 
   <p class="para">
    これらの設定はコンパイル時にのみ使用可能です。PHP の動作を
    実行時に設定したい場合は、<a href="configuration.php" class="link">実行時設定</a> の章を参照ください。
   </p>
  </p></blockquote>

  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <a href="configure.about.php#configure.options.misc" class="link">一般</a>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <a href="configure.about.php#configure.options.php" class="link">PHP の動作</a>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <a href="configure.about.php#configure.options.servers" class="link">サーバー</a>
    </span>
   </li>
  </ul>

  <div class="sect2" id="configure.options">
   <h3 class="title">PHP の Configure オプション</h3>
   


 <div class="sect3" id="configure.options.misc">
  <h4 class="title">一般的なオプション</h4>
  <dl>
   
    <dt id="configure.enable-debug">
     <strong class="option configure">--enable-debug</strong>
    </dt>
    <dd>
     <p class="para">
      デバッグシンボルつきでコンパイルします。
     </p>
    </dd>
   
   
    <dt id="configure.with-layout">
     <strong class="option configure">--with-layout=TYPE</strong>
    </dt>
    <dd>
     <p class="para">
      インストールされるファイルのレイアウトを設定します。Type には
      PHP（デフォルト）または GNU のどちらかが指定できます。
      manページを PREFIX 直下にインストールした場合(デフォルト)、
      <var class="filename">manpath</var> ユーティリティの検索パスで見つかった順に、
      GNU スタイルのレイアウトが選択されるので注意しましょう。
     </p>
    </dd>
   
   
    <dt id="configure.with-pear">
     <strong class="option configure">--with-pear=DIR</strong>
    </dt>
    <dd>
     <p class="para">
      PEAR を DIR（デフォルトは PREFIX/lib/php）にインストールします。
     </p>
    </dd>
   
   
    <dt id="configure.without-pear">
     <strong class="option configure">--without-pear</strong>
    </dt>
    <dd>
     <p class="para">
      PEAR をインストールしません。
     </p>
    </dd>
   

   
    <dt id="configure.enable-sigchild">
     <strong class="option configure">--enable-sigchild</strong>
    </dt>
    <dd>
     <p class="para">
      PHP 独自の SIGCHLD ハンドラを有効にします。
     </p>
    </dd>
   
   
    <dt id="configure.disable-rpath">
     <strong class="option configure">--disable-rpath</strong>
    </dt>
    <dd>
     <p class="para">
      実行時にライブラリの検索パスを追加できないようにします。
     </p>
    </dd>
   
   
    <dt id="configure.enable-libgcc">
     <strong class="option configure">--enable-libgcc</strong>
    </dt>
    <dd>
     <p class="para">
      明示的に libgcc とリンクします。
     </p>
    </dd>
   
   
    <dt id="configure.enable-php-streams">
     <strong class="option configure">--enable-php-streams</strong>
    </dt>
    <dd>
     <p class="para">
      実験的な PHP ストリーム機能を組み込みます。PHP そのものをテストする
      目的以外では使用しないでください。
     </p>
    </dd>
   
   
    <dt id="configure.with-zlib-dir">
     <strong class="option configure">--with-zlib-dir[=DIR]</strong>
    </dt>
    <dd>
     <p class="para">
      zlib のインストールディレクトリを指定します。
     </p>
    </dd>
   

   
    <dt id="configure.with-tsrm-pthreads">
     <strong class="option configure">--with-tsrm-pthreads</strong>
    </dt>
    <dd>
     <p class="para">
      POSIX スレッドを使用します（デフォルト）。
     </p>
    </dd>
   
   
    <dt id="configure.enable-shared">
     <strong class="option configure">--enable-shared[=PKGS]</strong>
    </dt>
    <dd>
     <p class="para">
      共有ライブラリをビルドします [default=yes]。
     </p>
    </dd>
   
   
    <dt id="configure.enable-static">
     <strong class="option configure">--enable-static[=PKGS]</strong>
    </dt>
    <dd>
     <p class="para">
      静的ライブラリをビルドします [default=yes]。
     </p>
    </dd>
   
   
    <dt id="configure.enable-fast-install">
     <strong class="option configure">--enable-fast-install[=PKGS]</strong>
    </dt>
    <dd>
     <p class="para">
      インストール速度を上げるように最適化します [default=yes]。
     </p>
    </dd>
   
   
    <dt id="configure.with-gnu-ld">
     <strong class="option configure">--with-gnu-ld</strong>
    </dt>
    <dd>
     <p class="para">
      C コンパイラが GNU ld を使用するとみなします [default=no]。
     </p>
    </dd>
   
   
    <dt id="configure.disable-libtool-lock">
     <strong class="option configure">--disable-libtool-lock</strong>
    </dt>
    <dd>
     <p class="para">
      ロックを回避します（並列ビルドに失敗する可能性があります）。
     </p>
    </dd>
   
   
    <dt id="configure.with-pic">
     <strong class="option configure">--with-pic</strong>
    </dt>
    <dd>
     <p class="para">
      PIC/non-PIC オブジェクトのどちらか一方のみを使用するようにします
      [default=use both]。
     </p>
    </dd>
   

   
    <dt id="configure.enable-versioning.php4">
     <strong class="option configure">--enable-versioning</strong>
    </dt>
    <dd>
     <p class="para">
      要求されるシンボルのみをエクスポートします。
      詳細な情報は INSTALL を参照ください。
     </p>
    </dd>
   
  </dl>
 </div>



   


 <div class="sect3" id="configure.options.php">
  <h4 class="title">PHP オプション</h4>
  <dl>
   
    <dt id="configure.enable-maintainer-mode">
     <strong class="option configure">--enable-maintainer-mode</strong>
    </dt>
    <dd>
     <p class="para">
      一般の利用者にとってあまり便利でない（そして時に混乱のもととなる）
      make ルールや依存性を有効にします。
     </p>
    </dd>
   
   
    <dt id="configure.with-config-file-path">
     <strong class="option configure">--with-config-file-path=PATH</strong>
    </dt>
    <dd>
     <p class="para">
      <var class="filename">php.ini</var> を探すパスを設定します。デフォルト値は <code class="literal">PREFIX/lib</code> です。
     </p>
    </dd>
   
   
    <dt id="configure.disable-short-tags">
     <strong class="option configure">--disable-short-tags</strong>
    </dt>
    <dd>
     <p class="para">
      開始タグの短縮形 &lt;? をデフォルトで無効にします。
     </p>
    </dd>
   
   
    <dt id="configure.with-libdir">
     <strong class="option configure">--with-libdir</strong>
    </dt>
    <dd>
     <p class="para">
      Unix システムにおいて、PHP をビルドするためのライブラリがあるディレクトリを指定します。
      64 ビットシステムでは、この引数を
      <code class="literal">--with-libdir=lib64</code>
      のようにして <code class="literal">lib64</code> ディレクトリを指定しなければなりません。
     </p>
    </dd>
   
   
    <dt id="configure.enable-zts">
     <strong class="option configure">--enable-zts</strong>
    </dt>
    <dd>
     <p class="para">
      Zend Thread Safety を有効にします。
      PHP 8.0.0 より前のバージョン、かつ Windows 以外のシステムでは、
      このオプションは
      <strong class="option configure">--enable-maintainer-zts</strong>
      と呼ばれていました。
     </p>
    </dd>
   
  </dl>
 </div>



   



 <div class="sect3" id="configure.options.servers">
  <h4 class="title">SAPI オプション</h4>
  <p class="para">
   以下のリストには、PHP で有効な SAPI（<code class="literal">Server
   Application Programming Interface</code>）が含まれています。
  </p>
  <dl>
   
    <dt id="configure.with-apxs">
     <strong class="option configure">--with-apxs[=FILE]</strong>
    </dt>
    <dd>
     <p class="para">
      Apache 共有モジュールをビルドします。FILE は Apache apxs ツールへの
      パスで、デフォルトは apxs です。Apache のソース Tarball に含まれる
      apxs を指定するのではなく、そのシステムに実際にインストールされている
      バージョンの apxs を指定するようにしましょう。
     </p>
    </dd>
   
   
    <dt id="configure.with-apache">
     <strong class="option configure">--with-apache[=DIR]</strong>
    </dt>
    <dd>
     <p class="para">
      静的 Apache モジュールをビルドします。DIR は Apache のビルドディレクトリで、
      デフォルトは <var class="filename">/usr/local/apache</var> です。
     </p>
    </dd>
   
   
    <dt id="configure.with-mod-charset">
     <strong class="option configure">--with-mod_charset</strong>
    </dt>
    <dd>
     <p class="para">
      （ロシアの Apache 用の）mod_charset のための変換テーブルを
      有効にします。
     </p>
    </dd>
   
   
    <dt id="configure.with-apxs2">
     <strong class="option configure">--with-apxs2[=FILE]</strong>
    </dt>
    <dd>
     <p class="para">
      Apache 2.0 共有モジュールをビルドします。FILE は、オプションで指定する
      Apache apxs ツールへのパスです。デフォルトは apxs です。
     </p>
    </dd>
   

   
    <dt id="configure.disable-cli">
     <strong class="option configure">--disable-cli</strong>
    </dt>
    <dd>
     <p class="para">
      PHP の CLI バージョンのビルドを
      無効にします（自動的に <a href="configure.about.php#configure.without-pear" class="link">
      --without-pear</a> も指定されます）。詳細な情報は
      <a href="features.commandline.php" class="link">PHP をコマンドラインから使用する</a>
      を参照ください。
     </p>
    </dd>
   
   
   
    <dt id="configure.enable-phpdbg">
     <strong class="option configure">--enable-phpdbg</strong>
    </dt>
    <dd>
     <p class="para">
      phpdbg インタラクティブデバッガ SAPI モジュールのサポートを有効にします。
     </p>
    </dd>
   

   
    <dt id="configure.enable-embed">
     <strong class="option configure">--enable-embed[=TYPE]</strong>
    </dt>
    <dd>
     <p class="para">
      組み込み SAPI ライブラリのビルドを有効にします。TYPE は
      <code class="literal">shared</code> あるいは <code class="literal">static</code>
      のいずれかで、デフォルトは <code class="literal">shared</code> です。
     </p>
    </dd>
   

   
    <dt id="configure.with-servlet">
     <strong class="option configure">--with-servlet[=DIR]</strong>
    </dt>
    <dd>
     <p class="para">
      サーブレットのサポートを含めます。DIR は JSDK のインストールディレクトリです。
      java 拡張モジュールが共有ライブラリとしてビルドされていることが
      前提条件です。
     </p>
    </dd>
   

   
    <dt id="configure.disable-cgi">
     <strong class="option configure">--disable-cgi</strong>
    </dt>
    <dd>
     <p class="para">
      PHP の CGI バージョンをビルドしないようにします。
     </p>
     <p class="para">
      この引数は FastCGI も有効にします。
     </p>
    </dd>
   

  </dl>
 </div>



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