Creating Extensions Chapter 4. PHP's Automatic Build System PHP 4.0 features an automatic build system that's very flexible.
All modules reside in a subdirectory of the ext directory.
As argument it takes the name of the module that you want to create. The shell script then creates a directory of the same name, along with the appropriate config.m4 and Makefile.in files. This instruction creates the aforementioned files. To include the new module in the automatic configuration and build process, you have to run buildconf , which regenerates the configure script by searching through the ext directory and including all found config.m4 files. Finally, running configure parses all configuration options and generates a makefile based on those options and the options you specify in Makefile.in .