- 论坛徽章:
- 1
|
PHP4扩展模块开发入门(一)v2005.05.19 现场开发实例
然后修改编译配置文件,打开config.m4,你从最开始可以看到:
- dnl $Id$
- dnl config.m4 for extension CheckInfo
-
- dnl Comments in this file start with the string 'dnl'.
- dnl Remove where necessary. This file will not work
- dnl without editing.
-
- dnl If your extension references something external, use with:
-
- dnl PHP_ARG_WITH(CheckInfo, for CheckInfo support,
- dnl Make sure that the comment is aligned:
- dnl [ --with-CheckInfo Include CheckInfo support])
-
- dnl Otherwise use enable:
- dnl 另外,你可以使用enable参数,来加载模块
-
- dnl PHP_ARG_ENABLE(CheckInfo, whether to enable CheckInfo support,
- dnl Make sure that the comment is aligned:
- dnl [ --enable-CheckInfo Enable CheckInfo support])
复制代码
在这里,dnl表示注释,加了dnl的部分不会被执行。
在php编译的时候,加载某一模块可以使用
--with-modulename或者--enable-modulename
如果采用--with-modulename的模式,那么就修改
- dnl PHP_ARG_WITH(CheckInfo, for CheckInfo support,
- dnl Make sure that the comment is aligned:
- dnl [ --with-CheckInfo Include CheckInfo support])
复制代码
为
- PHP_ARG_WITH(CheckInfo, for CheckInfo support,
- Make sure that the comment is aligned:
- [ --with-CheckInfo Include CheckInfo support])
复制代码
反之亦然,如果要采用--enable-modulename的模式,就修改
- dnl PHP_ARG_ENABLE(CheckInfo, whether to enable CheckInfo support,
- dnl Make sure that the comment is aligned:
- dnl [ --enable-CheckInfo Enable CheckInfo support])
复制代码
为
- PHP_ARG_ENABLE(CheckInfo, whether to enable CheckInfo support,
- Make sure that the comment is aligned:
- [ --enable-CheckInfo Enable CheckInfo support])
复制代码
如果你的和这个不同,应该可以根据英文的意思来设定的。 |
|