| Macro | Description |
| AC_MSG_CHECKING(message) | Prints a "checking <message>" text
during configure_ |
| AC_MSG_RESULT(value) | Gives the result to AC_MSG_CHECKING;
should specify either yes or no as value_ |
| AC_MSG_ERROR(message) | Prints message as error message
during configure and aborts the script_ |
| AC_DEFINE(name,value,description) | Adds
#define to php_config_h with the value of
value and a comment that says description (this
is useful for conditional compilation of your module)_ |
| AC_ADD_INCLUDE(path) | Adds a compiler include path; for example, used if the
module needs to add search paths for header files_ |
| AC_ADD_LIBRARY_WITH_PATH(libraryname,librarypath) | Specifies an additional library to link_ |
| AC_ARG_WITH(modulename,description,unconditionaltest,conditionaltest) | Quite a powerful macro, adding the
module with description to the
configure __help output_ PHP checks
whether the option
__with_<modulename> is given to the
configure script_ If so, it runs the
script unconditionaltest (for example,
__with_myext=yes), in which case the value
of the option is contained in the variable
$withval_ Otherwise, it executes
conditionaltest_
|
| PHP_EXTENSION(modulename,
[shared]) | This macro is a must to call for PHP
to configure your extension_ You can supply a second argument
in addition to your module name, indicating whether you intend compilation as a
shared module_ This will result in a definition at compile time for your
source as COMPILE_DL_<modulename>_ |