主页

索引

模块索引

搜索页面

5.2.7. php配置

用法

configure [options] [host]

配置项

--cache-file=FILE       cache test results in FILE
--help                  print this message
--no-create             do not create output files
--quiet, --silent       do not print `checking...' messages
--version               print the version of autoconf that created configure

目录和文件名

--prefix=PREFIX         install architecture-independent files in PREFIX
                        [/usr/local]
--exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                        [same as prefix]
--bindir=DIR            user executables in DIR [EPREFIX/bin]
--sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
--libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
--datadir=DIR           read-only architecture-independent data in DIR
                        [PREFIX/share]
--sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
--sharedstatedir=DIR    modifiable architecture-independent data in DIR
                        [PREFIX/com]
--localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
--libdir=DIR            object code libraries in DIR [EPREFIX/lib]
--includedir=DIR        C header files in DIR [PREFIX/include]
--oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
--infodir=DIR           info documentation in DIR [PREFIX/info]
--mandir=DIR            man documentation in DIR [PREFIX/man]
--srcdir=DIR            find the sources in DIR [configure dir or ..]
--program-prefix=PREFIX prepend PREFIX to installed program names
--program-suffix=SUFFIX append SUFFIX to installed program names
--program-transform-name=PROGRAM
                        run sed PROGRAM on installed program names

Host type:

--build=BUILD           configure for building on BUILD [BUILD=HOST]
--host=HOST             configure for HOST [guessed]
--target=TARGET         configure for TARGET [TARGET=HOST]

Features and packages:

--disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
--enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
--with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
--without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
--x-includes=DIR        X include files are in DIR
--x-libraries=DIR       X library files are in DIR

–enable and –with options recognized:

--with-libdir=NAME      Look for libraries in .../NAME rather than .../lib
--disable-rpath         Disable passing additional runtime library
                        search paths
--enable-re2c-cgoto     Enable -g flag to re2c to use computed goto gcc extension

SAPI modules:

 1
 2  --with-aolserver=DIR    Specify path to the installed AOLserver
 3  --with-apxs[=FILE]      Build shared Apache 1.x module. FILE is the optional
 4                          pathname to the Apache apxs tool [apxs]
 5  --with-apache[=DIR]     Build Apache 1.x module. DIR is the top-level Apache
 6                          build directory [/usr/local/apache]
 7  --enable-mod-charset      APACHE: Enable transfer tables for mod_charset (Rus Apache)
 8  --with-apxs2filter[=FILE]   
 9                          EXPERIMENTAL: Build shared Apache 2.0 Filter module. FILE is the optional
10                          pathname to the Apache apxs tool [apxs]
11  --with-apxs2[=FILE]     Build shared Apache 2.0 Handler module. FILE is the optional
12                          pathname to the Apache apxs tool [apxs]
13  --with-apache-hooks[=FILE]      
14                          EXPERIMENTAL: Build shared Apache 1.x module. FILE is the optional
15                          pathname to the Apache apxs tool [apxs]
16  --with-apache-hooks-static[=DIR]
17                          EXPERIMENTAL: Build Apache 1.x module. DIR is the top-level Apache
18                          build directory [/usr/local/apache]
19  --enable-mod-charset      APACHE (hooks): Enable transfer tables for mod_charset (Rus Apache)
20  --with-caudium[=DIR]    Build PHP as a Pike module for use with Caudium.
21                          DIR is the Caudium server dir [/usr/local/caudium/server]
22  --disable-cli           Disable building CLI version of PHP
23                          (this forces --without-pear)
24  --with-continuity=DIR   Build PHP as Continuity Server module. 
25                          DIR is path to the installed Continuity Server root
26  --enable-embed[=TYPE]   EXPERIMENTAL: Enable building of embedded SAPI library
27                          TYPE is either 'shared' or 'static'. [TYPE=shared]
28  --enable-fpm              EXPERIMENTAL: Enable building of the fpm SAPI executable
29  --with-fpm-user[=USER]  Set the user for php-fpm to run as. (default: nobody)
30  --with-fpm-group[=GRP]  Set the group for php-fpm to run as. For a system user, this 
31                  should usually be set to match the fpm username (default: nobody)
32  --with-isapi[=DIR]      Build PHP as an ISAPI module for use with Zeus
33  --with-litespeed        Build PHP as litespeed module
34  --with-milter[=DIR]     Build PHP as Milter application
35  --with-nsapi=DIR        Build PHP as NSAPI module for Netscape/iPlanet/Sun Webserver
36  --with-phttpd=DIR       Build PHP as phttpd module
37  --with-pi3web[=DIR]     Build PHP as Pi3Web module
38  --with-roxen=DIR        Build PHP as a Pike module. DIR is the base Roxen
39                          directory, normally /usr/local/roxen/server
40  --enable-roxen-zts        ROXEN: Build the Roxen module using Zend Thread Safety
41  --with-thttpd=SRCDIR    Build PHP as thttpd module
42  --with-tux=MODULEDIR    Build PHP as a TUX module (Linux only)
43  --with-webjames=SRCDIR  Build PHP as a WebJames module (RISC OS only)
44  --disable-cgi           Disable building CGI version of PHP
45

基本配置

 1  --enable-gcov           Enable GCOV code coverage (requires LTP) - FOR DEVELOPERS ONLY!!
 2  --enable-debug          Compile with debugging symbols
 3  --with-layout=TYPE      Set how installed files will be laid out.  Type can
 4                          be either PHP or GNU [PHP]
 5  --with-config-file-path=PATH
 6                          Set the path in which to look for php.ini [PREFIX/lib]
 7  --with-config-file-scan-dir=PATH
 8                          Set the path where to scan for configuration files
 9  --enable-safe-mode      Enable safe mode by default
10  --with-exec-dir[=DIR]   Only allow executables in DIR under safe-mode
11                          [/usr/local/php/bin]
12  --enable-sigchild       Enable PHP's own SIGCHLD handler
13  --enable-magic-quotes   Enable magic quotes by default.
14  --enable-libgcc         Enable explicitly linking against libgcc
15  --disable-short-tags    Disable the short-form <? start tag by default
16  --enable-dmalloc        Enable dmalloc
17  --disable-ipv6          Disable IPv6 support
18  --enable-fd-setsize     Set size of descriptor sets

扩展

  1 --with-EXTENSION=[shared[,PATH]]
  2  
  3    NOTE: Not all extensions can be build as 'shared'.
  4
  5    Example: --with-foobar=shared,/usr/local/foobar/
  6
  7      o Builds the foobar extension as shared extension.
  8      o foobar package install prefix is /usr/local/foobar/
  9
 10
 11 --disable-all   Disable all extensions which are enabled by default
 12
 13  --with-regex=TYPE       regex library type: system, php. [TYPE=php]
 14                          WARNING: Do NOT use unless you know what you are doing!
 15  --disable-libxml        Disable LIBXML support
 16  --with-libxml-dir[=DIR]   LIBXML: libxml2 install prefix
 17  --with-openssl[=DIR]    Include OpenSSL support (requires OpenSSL >= 0.9.6)
 18  --with-kerberos[=DIR]     OPENSSL: Include Kerberos support
 19  --with-pcre-regex=DIR   Include Perl Compatible Regular Expressions support.
 20                          DIR is the PCRE install prefix [BUNDLED]
 21  --without-sqlite3[=DIR] Do not include SQLite3 support. DIR is the prefix to
 22                          SQLite3 installation directory.
 23  --with-zlib[=DIR]       Include ZLIB support (requires zlib >= 1.0.9)
 24  --with-zlib-dir=<DIR>   Define the location of zlib install directory
 25  --enable-bcmath         Enable bc style precision math functions
 26  --with-bz2[=DIR]        Include BZip2 support
 27  --enable-calendar       Enable support for calendar conversion
 28  --disable-ctype         Disable ctype functions
 29  --with-curl[=DIR]       Include cURL support
 30  --with-curlwrappers     EXPERIMENTAL: Use cURL for url streams
 31  --enable-dba            Build DBA with bundled modules. To build shared DBA
 32                          extension use --enable-dba=shared
 33  --with-qdbm[=DIR]         DBA: QDBM support
 34  --with-gdbm[=DIR]         DBA: GDBM support
 35  --with-ndbm[=DIR]         DBA: NDBM support
 36  --with-db4[=DIR]          DBA: Oracle Berkeley DB 4.x or 5.x support
 37  --with-db3[=DIR]          DBA: Oracle Berkeley DB 3.x support
 38  --with-db2[=DIR]          DBA: Oracle Berkeley DB 2.x support
 39  --with-db1[=DIR]          DBA: Oracle Berkeley DB 1.x support/emulation
 40  --with-dbm[=DIR]          DBA: DBM support
 41  --without-cdb[=DIR]       DBA: CDB support (bundled)
 42  --disable-inifile         DBA: INI support (bundled)
 43  --disable-flatfile        DBA: FlatFile support (bundled)
 44  --disable-dom           Disable DOM support
 45  --with-libxml-dir[=DIR]   DOM: libxml2 install prefix
 46  --with-enchant[=DIR]     Include enchant support.
 47                          GNU Aspell version 1.1.3 or higher required.
 48  --enable-exif           Enable EXIF (metadata from images) support
 49  --disable-fileinfo      Disable fileinfo support
 50  --disable-filter        Disable input filter support
 51  --with-pcre-dir           FILTER: pcre install prefix
 52  --enable-ftp            Enable FTP support
 53  --with-openssl-dir[=DIR]  FTP: openssl install prefix
 54  --with-gd[=DIR]         Include GD support.  DIR is the GD library base
 55                          install directory [BUNDLED]
 56  --with-jpeg-dir[=DIR]     GD: Set the path to libjpeg install prefix
 57  --with-png-dir[=DIR]      GD: Set the path to libpng install prefix
 58  --with-zlib-dir[=DIR]     GD: Set the path to libz install prefix
 59  --with-xpm-dir[=DIR]      GD: Set the path to libXpm install prefix
 60  --with-freetype-dir[=DIR] GD: Set the path to FreeType 2 install prefix
 61  --with-t1lib[=DIR]        GD: Include T1lib support. T1lib version >= 5.0.0 required
 62  --enable-gd-native-ttf    GD: Enable TrueType string function
 63  --enable-gd-jis-conv      GD: Enable JIS-mapped Japanese font support
 64  --with-gettext[=DIR]    Include GNU gettext support
 65  --with-gmp[=DIR]        Include GNU MP support
 66  --with-mhash[=DIR]      Include mhash support
 67  --disable-hash          Disable hash support
 68  --without-iconv[=DIR]   Exclude iconv support
 69  --with-imap[=DIR]       Include IMAP support. DIR is the c-client install prefix
 70  --with-kerberos[=DIR]     IMAP: Include Kerberos support. DIR is the Kerberos install prefix
 71  --with-imap-ssl[=DIR]     IMAP: Include SSL support. DIR is the OpenSSL install prefix
 72  --with-interbase[=DIR]  Include InterBase support.  DIR is the InterBase base
 73                          install directory [/usr/interbase]
 74  --enable-intl           Enable internationalization support
 75  --with-icu-dir=DIR      Specify where ICU libraries and headers can be found
 76  --disable-json          Disable JavaScript Object Serialization support
 77  --with-ldap[=DIR]       Include LDAP support
 78  --with-ldap-sasl[=DIR]    LDAP: Include Cyrus SASL support
 79  --enable-mbstring       Enable multibyte string support
 80  --disable-mbregex         MBSTRING: Disable multibyte regex support
 81  --disable-mbregex-backtrack
 82                            MBSTRING: Disable multibyte regex backtrack check
 83  --with-libmbfl[=DIR]      MBSTRING: Use external libmbfl.  DIR is the libmbfl base
 84                            install directory [BUNDLED]
 85  --with-onig[=DIR]         MBSTRING: Use external oniguruma. DIR is the oniguruma install prefix.
 86                            If DIR is not set, the bundled oniguruma will be used
 87  --with-mcrypt[=DIR]     Include mcrypt support
 88  --with-mssql[=DIR]      Include MSSQL-DB support.  DIR is the FreeTDS home
 89                          directory [/usr/local/freetds]
 90  --with-mysql[=DIR]      Include MySQL support.  DIR is the MySQL base
 91                          directory.  If mysqlnd is passed as DIR, 
 92                          the MySQL native driver will be used [/usr/local]
 93  --with-mysql-sock[=DIR]   MySQL/MySQLi/PDO_MYSQL: Location of the MySQL unix socket pointer.
 94                            If unspecified, the default locations are searched
 95  --with-zlib-dir[=DIR]     MySQL: Set the path to libz install prefix
 96  --with-mysqli[=FILE]    Include MySQLi support.  FILE is the path
 97                          to mysql_config.  If mysqlnd is passed as FILE,
 98                          the MySQL native driver will be used [mysql_config]
 99  --enable-embedded-mysqli  MYSQLi: Enable embedded support
100                            Note: Does not work with MySQL native driver!
101  --with-oci8[=DIR]       Include Oracle Database OCI8 support. DIR defaults to $ORACLE_HOME.
102                          Use --with-oci8=instantclient,/path/to/instant/client/lib 
103                          to use an Oracle Instant Client installation
104  --with-adabas[=DIR]     Include Adabas D support [/usr/local]
105  --with-sapdb[=DIR]      Include SAP DB support [/usr/local]
106  --with-solid[=DIR]      Include Solid support [/usr/local/solid]
107  --with-ibm-db2[=DIR]    Include IBM DB2 support [/home/db2inst1/sqllib]
108  --with-ODBCRouter[=DIR] Include ODBCRouter.com support [/usr]
109  --with-empress[=DIR]    Include Empress support [$EMPRESSPATH]
110                          (Empress Version >= 8.60 required)
111  --with-empress-bcs[=DIR]
112                          Include Empress Local Access support [$EMPRESSPATH]
113                          (Empress Version >= 8.60 required)
114  --with-birdstep[=DIR]   Include Birdstep support [/usr/local/birdstep]
115  --with-custom-odbc[=DIR]
116                          Include user defined ODBC support. DIR is ODBC install base
117                          directory [/usr/local]. Make sure to define CUSTOM_ODBC_LIBS and
118                          have some odbc.h in your include dirs. f.e. you should define 
119                          following for Sybase SQL Anywhere 5.5.00 on QNX, prior to
120                          running this configure script:
121                              CPPFLAGS="-DODBC_QNX -DSQLANY_BUG"
122                              LDFLAGS=-lunix
123                              CUSTOM_ODBC_LIBS="-ldblib -lodbc"
124  --with-iodbc[=DIR]      Include iODBC support [/usr/local]
125  --with-esoob[=DIR]      Include Easysoft OOB support [/usr/local/easysoft/oob/client]
126  --with-unixODBC[=DIR]   Include unixODBC support [/usr/local]
127  --with-dbmaker[=DIR]    Include DBMaker support
128  --enable-pcntl          Enable pcntl support (CLI/CGI only)
129  --disable-pdo           Disable PHP Data Objects support
130  --with-pdo-dblib[=DIR]    PDO: DBLIB-DB support.  DIR is the FreeTDS home directory
131  --with-pdo-firebird[=DIR] PDO: Firebird support.  DIR is the Firebird base
132                            install directory [/opt/firebird]
133  --with-pdo-mysql[=DIR]    PDO: MySQL support. DIR is the MySQL base directory
134                                 If mysqlnd is passed as DIR, the MySQL native
135                                 native driver will be used [/usr/local]
136  --with-zlib-dir[=DIR]       PDO_MySQL: Set the path to libz install prefix
137  --with-pdo-oci[=DIR]      PDO: Oracle OCI support. DIR defaults to $ORACLE_HOME.
138                            Use --with-pdo-oci=instantclient,prefix,version 
139                            for an Oracle Instant Client SDK. 
140                            For example on Linux with 11.2 RPMs use:
141                            --with-pdo-oci=instantclient,/usr,11.2
142                            With 10.2 RPMs use:
143                            --with-pdo-oci=instantclient,/usr,10.2.0.4
144  --with-pdo-odbc=flavour,dir
145                            PDO: Support for 'flavour' ODBC driver.
146                            include and lib dirs are looked for under 'dir'.
147                            
148                            'flavour' can be one of:  ibm-db2, iODBC, unixODBC, generic
149                            If ',dir' part is omitted, default for the flavour 
150                            you have selected will used. e.g.:
151                            
152                              --with-pdo-odbc=unixODBC
153                              
154                            will check for unixODBC under /usr/local. You may attempt 
155                            to use an otherwise unsupported driver using the "generic" 
156                            flavour.  The syntax for generic ODBC support is:
157                            
158                              --with-pdo-odbc=generic,dir,libname,ldflags,cflags
159
160                            When build as shared the extension filename is always pdo_odbc.so
161  --with-pdo-pgsql[=DIR]    PDO: PostgreSQL support.  DIR is the PostgreSQL base
162                            install directory or the path to pg_config
163  --without-pdo-sqlite[=DIR]
164                            PDO: sqlite 3 support.  DIR is the sqlite base
165                            install directory [BUNDLED]
166  --with-pgsql[=DIR]      Include PostgreSQL support.  DIR is the PostgreSQL
167                          base install directory or the path to pg_config
168  --disable-phar          Disable phar support
169  --disable-posix         Disable POSIX-like functions
170  --with-pspell[=DIR]     Include PSPELL support.
171                          GNU Aspell version 0.50.0 or higher required
172  --with-libedit[=DIR]    Include libedit readline replacement (CLI/CGI only)
173  --with-readline[=DIR]   Include readline support (CLI/CGI only)
174  --with-recode[=DIR]     Include recode support
175  --disable-session       Disable session support
176  --with-mm[=DIR]           SESSION: Include mm support for session storage
177  --enable-shmop          Enable shmop support
178  --disable-simplexml     Disable SimpleXML support
179  --with-libxml-dir=DIR     SimpleXML: libxml2 install prefix
180  --with-snmp[=DIR]       Include SNMP support
181  --with-openssl-dir[=DIR]  SNMP: openssl install prefix
182  --enable-ucd-snmp-hack    SNMP: Enable UCD SNMP hack
183  --enable-soap           Enable SOAP support
184  --with-libxml-dir=DIR     SOAP: libxml2 install prefix
185  --enable-sockets        Enable sockets support
186  --without-sqlite=DIR    Do not include sqlite support.  DIR is the sqlite base
187                          install directory [BUNDLED]
188  --enable-sqlite-utf8      SQLite: Enable UTF-8 support for SQLite
189  --with-sybase-ct[=DIR]  Include Sybase-CT support.  DIR is the Sybase home
190                          directory [/home/sybase]
191  --enable-sysvmsg        Enable sysvmsg support
192  --enable-sysvsem        Enable System V semaphore support
193  --enable-sysvshm        Enable the System V shared memory support
194  --with-tidy[=DIR]       Include TIDY support
195  --disable-tokenizer     Disable tokenizer support
196  --enable-wddx           Enable WDDX support
197  --with-libxml-dir=DIR     WDDX: libxml2 install prefix
198  --with-libexpat-dir=DIR   WDDX: libexpat dir for XMLRPC-EPI (deprecated)
199  --disable-xml           Disable XML support
200  --with-libxml-dir=DIR     XML: libxml2 install prefix
201  --with-libexpat-dir=DIR   XML: libexpat install prefix (deprecated)
202  --disable-xmlreader     Disable XMLReader support
203  --with-libxml-dir=DIR     XMLReader: libxml2 install prefix
204  --with-xmlrpc[=DIR]     Include XMLRPC-EPI support
205  --with-libxml-dir=DIR     XMLRPC-EPI: libxml2 install prefix
206  --with-libexpat-dir=DIR   XMLRPC-EPI: libexpat dir for XMLRPC-EPI (deprecated)
207  --with-iconv-dir=DIR      XMLRPC-EPI: iconv dir for XMLRPC-EPI
208  --disable-xmlwriter     Disable XMLWriter support
209  --with-libxml-dir=DIR     XMLWriter: libxml2 install prefix
210  --with-xsl[=DIR]        Include XSL support.  DIR is the libxslt base
211                          install directory (libxslt >= 1.1.0 required)
212  --enable-zip            Include Zip read/write support
213  --with-zlib-dir[=DIR]     ZIP: Set the path to libz install prefix
214  --with-pcre-dir           ZIP: pcre install prefix
215  --disable-mysqlnd-compression-support
216                            Disable support for the MySQL compressed protocol in mysqlnd
217  --with-zlib-dir[=DIR]       mysqlnd: Set the path to libz install prefix
218

PEAR

--with-pear=DIR         Install PEAR in DIR [PREFIX/lib/php]
--without-pear          Do not install PEAR

Zend:

--with-zend-vm=TYPE     Set virtual machine dispatch method. Type is
                        one of CALL, SWITCH or GOTO [TYPE=CALL]
--enable-maintainer-zts Enable thread safety - for code maintainers only!!
--disable-inline-optimization
                        If building zend_execute.lo fails, try this switch
--enable-zend-multibyte Compile with zend multibyte support

TSRM:

--with-tsrm-pth[=pth-config]
                        Use GNU Pth
--with-tsrm-st          Use SGI's State Threads
--with-tsrm-pthreads    Use POSIX threads (default)

Libtool:

--enable-shared[=PKGS]  build shared libraries [default=yes]
--enable-static[=PKGS]  build static libraries [default=yes]
--enable-fast-install[=PKGS]  optimize for fast installation [default=yes]
--with-gnu-ld           assume the C compiler uses GNU ld [default=no]
--disable-libtool-lock  avoid locking (might break parallel builds)
--with-pic              try to use only PIC/non-PIC objects [default=use both]
--with-tags[=TAGS]      include additional configurations [automatic]

--with-gnu-ld           assume the C compiler uses GNU ld [default=no]

主页

索引

模块索引

搜索页面