summaryrefslogtreecommitdiff
path: root/buildconf
Commit message (Collapse)AuthorAgeFilesLines
* Remove build.mk usagePeter Kokot2019-07-211-27/+28
| | | | | | | | | | | | | | | | | | | | | First step when creating the `configure` script is currently using make. This is helpful when developing buildsystem to only rebuild `configure` and `main/php_config.h.in` files when one of the *.m4 or configure.ac file changes and saves the developer time a little. Realistically however, it is not needed that much considering the times of several seconds to fully rebuild the configure script and configuration header. The next step when running the `configure` script is much more time consuming so performance on buildconf level is a bit questionable and won't be noticed on today's systems. Additionally: - buildconf now removes cache and all targets and uses -f option on the first step i.e. autoconf. The autoheader does not need the -f option in this case. Closes GH-4437
* Simplify checking of *nix build toolsPeter Kokot2019-04-291-6/+36
| | | | | | | | | The buildmk.stamp file has been created by the *nix build checking step to run the check step only once. Instead of poluting the project root directory, the stamp file can be also omitted. Performance difference is very minimal to not justify having the stamp check at all today anymore. This patch integrates the buildcheck.sh to buildconf script directly.
* Enhance the buildconf force optionPeter Kokot2019-04-281-4/+4
| | | | | | | | | | The force option used to only remove the Autoconf cache files. Now it also removes entire configure file so the configure file always gets rebuilt when needs be done. Additionally, the buildconf now also accepts the shorter version of the force option: buildconf -f
* Move acinclude.m4 to build/php.m4Peter Kokot2019-04-231-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | The acinclude.m4 file is in a usual Autotools build processed with Automake's aclocal tool. Since PHP currently doesn't use Automake and aclocal this file can be moved into the build directory. PHP build system currently generates a combined aclocal.m4 file that Autoconf can processes automatically. However, a newer practice is writing all local macros in separate dedicated files prefixed with package name, in PHP's case PHP_MACRO_NAME and putting them in a common `m4` directory. PHP uses currently `build` directory for this purpose. Name `php.m4` probably most resembles such file for PHP's case. PHP manually created the aclocal.m4 file from acinclude.m4 and build/libtool.m4. Which is also not a particularly good practice [1], so this patch also removes the generated alocal.m4 usage and uses m4_include() calls manually in the configure.ac and phpize.m4 files manually. - sort order is not important but can be alphabetical - list of *.m4 files prerequisites for configure script generation updated - Moving m4_include() before AC_INIT also removes all comments starting with hash character (`#`) in the included files. [1] https://autotools.io/autoconf/macros.html
* Refactor Zend/acinclude.m4 local macroPeter Kokot2019-04-211-1/+1
| | | | | | There is now only a single M4 macro in the legacy acinclude.m4 file. A separate acinclude file was once used with a standalone Zend engine building but with current build system this can be simplified a bit.
* Join build makefiles togetherPeter Kokot2019-04-171-5/+10
| | | | | | | | | | | | | | | Changes: - Joins build/build.mk and build/build2.mk files together since there isn't any practical reason for having two different files with the current build system. - Makefile is now more portable. All special syntaxes are omitted, for example, a conditional assignment operators `?=`. This makes buildconf more useful on Solaris make derivative, so there is no longer need to override make with gmake: `MAKE=gmake ./buildconf`. - Suppressing autoconf and autoheader warnings is not needed anymore with current build system. Instead, the option `-Wall` has been used when running `./buildconf --debug` to get more useful debug info about current M4.
* Simplify generated_lists generationPeter Kokot2019-04-161-3/+4
| | | | | | | | | | | | | The `generated_lists` file is generated as a helper for build related Makefile to include a list of *.m4 files prerequisites. When some of these *.m4 files change, the configure script is regenerated when buildconf is run. This can be simplified using dynamic environment variable passed to the Makefile directly so it avoids another file from being generated in the project root directory and shipping it with the PHP release or creating a dedicated gitignore rule. This is portable across all POSIX compatible makes So this patch includes GNU Make, and everybody elses' make derivative support.
* Refactor AC_INIT in configure.ac and PHP versionsPeter Kokot2019-04-071-3/+3
| | | | | | | | | Since Autoconf 2.53 the AC_INIT call with only a single argument has been made obsolete and now includes several other optional arguments to make installation experience a bit better by providing program version and links to the project in the `./configure -h` output. This patch also updates win build version. The phpize.m4 AC_INIT has been updated with the call without arguments.
* Enhance the buildconf scriptPeter Kokot2019-03-161-15/+69
| | | | | | | | | | | | | Changes: - Added a short introduction what this script does - Added usually the expected -h and --help options with explanation for a reason for this script and its usage. - Messages changed a bit so the PHP installation procedure becomes simpler without needing to constantly remind the reader what to run and what not in the documentations and installation instructions. - cd into current working directory of the buildconf (this enables running the script from other locations and inside other scripts). - check if make exists
* Merge branch 'PHP-7.2' into PHP-7.3Peter Kokot2018-10-201-2/+2
|\ | | | | | | | | | | | | * PHP-7.2: [ci skip] Update NEWS [ci skip] Update NEWS Fix #77041: buildconf should output error messages to stderr
| * Merge branch 'PHP-7.1' into PHP-7.2Peter Kokot2018-10-201-2/+2
| |\ | | | | | | | | | | | | | | | * PHP-7.1: [ci skip] Update NEWS Fix #77041: buildconf should output error messages to stderr
| | * Fix #77041: buildconf should output error messages to stderrMizunashi Mana2018-10-201-2/+2
| | |
* | | Remove unused Git attributes identPeter Kokot2018-07-251-1/+0
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | The $Id$ keywords were used in Subversion where they can be substituted with filename, last revision number change, last changed date, and last user who changed it. In Git this functionality is different and can be done with Git attribute ident. These need to be defined manually for each file in the .gitattributes file and are afterwards replaced with 40-character hexadecimal blob object name which is based only on the particular file contents. This patch simplifies handling of $Id$ keywords by removing them since they are not used anymore.
* | Use modern autotools name of configure.ac instead of configure.inBrian Evans2017-01-271-1/+1
|/ | | | | | | | | | configure.ac was introduced in 2001 with automake-1.15 and autoconf-2.50 to replace the file named configure.in. Autotools is preparing to remove configure.in in Automake 2.0. All new software should be using configure.ac. This also fixes Bug #69770 where extensions are creating configure.in Signed-off-by: Brian Evans <grknight@gentoo.org>
* Make "buildconf --force" more robust, per IRC chat. Not backported to 5.3 ↵Christopher Jones2012-03-061-1/+6
| | | | to avoid destabilization.
* - Removed unused partsJani Taskinen2009-07-201-2/+2
|
* MFH: Get rid of PHP 4 related buildconf and moving around directories. As we ↵David Soria Parra2009-07-111-29/+2
| | | | switched to svn ZE2 is in Zend by default.
* MFH: - Made build system less major version dependant to ease MFB/MFHJani Taskinen2007-07-261-2/+2
|
* MFHfoobar2005-11-291-6/+2
|
* - Fix buildconf with BSD makefoobar2005-02-031-1/+5
|
* Added --debug option to buildconffoobar2005-01-191-3/+8
|
* Revert undiscussed / undecided patchfoobar2003-12-021-22/+9
|
* The least intrusive way to 'import' PECL extensions into the main tree.Ilia Alshanetsky2003-12-011-9/+22
| | | | | | For the moment this deals with tidy, further extensions can be added at a later point.
* First shot at making ze1/ze2 coexistSascha Schumann2003-06-251-0/+22
|
* cleanupfoobar2003-05-191-24/+19
|
* MFB buildconf sanity checkWez Furlong2003-05-191-0/+23
|
* Move autoconf-2.13 check into buildcheck.sh where we already haveSascha Schumann2002-07-211-21/+0
| | | | | | version parsing code and (more importantly) proper error checking for missing autoconf.
* proper patch to cvsclean for bad autoconf.James Cox2002-07-201-0/+8
|
* reverse bad patchSascha Schumann2002-07-201-32/+1
| | | | | | | james, when you send me email about your patch which does not work, why don't you wait for a reply first before committing the non-working stuff?
* more work for buildconf. forces a cvsclean if using a bad am. more ZE/zE2 tests.James Cox2002-07-201-1/+32
|
* iterate through passed argumentsSascha Schumann2002-06-241-21/+12
|
* some people would prefer to be able to specify. So, we specify --ZendEngine2 ↵James Cox2002-06-231-3/+9
| | | | for ZE2 builds, Zend for the rest.
* changing this to mv ZendEngine2 Zend instead of shell logic that isn't portable.James Cox2002-06-231-0/+4
|
* Build compat bridge for makes which support only the BSD .include command.Sascha Schumann2000-09-261-0/+5
| | | | | | This is only required for BSD/OS, because BSDI did not merge in changes from 4.4BSD Lite 1.
* Some crappy makes don't handle the .PHONY target correctly.Sascha Schumann2000-08-241-0/+2
| | | | | So we force a rebuild of generated_lists
* Integration of -ng changes. Changes:Sascha Schumann1999-12-301-1/+1
| | | | | | | | | | | | - added support for externally built modules, - improved support for in-tree shared modules, - fixed diversion bugs, - configure displays some informative messages, - faster static build (libtool isn't used anymore for compiling non-PIC objects), - dependencies comparable to automake's without requiring GNU make or GCC, - working make clean for non-GNU makes.
* Let user override default setting of ``make''Sascha Schumann1999-12-021-1/+2
|
* Remove some more redundant checks. buildconf is not but a simple wrapperStig Bakken1999-11-291-107/+1
| | | | | for build.mk & co.
* @buildconf now uses build.mkStig Bakken1999-11-281-40/+18
| | | | | Removed redundancy in buildconf/build.mk, buildconf now runs "make -f build.mk"
* Don't forget the pickle.Andrei Zmievski1999-11-221-1/+1
|
* Add libtool files to CVS. Advantages:Sascha Schumann1999-11-081-5/+0
| | | | | | | | | - PHP-specific changes are easier to maintain - it removes one dependency for users (i.e. GNU vs. FreeBSD ports) I have not removed the libtool check in buildconf, since libzend/TSRM still depend on a local version of libtool.
* # Workaround needed to run automake in makedist.Stig Bakken1999-11-041-1/+1
|
* Enable hardcoding runpaths for more platforms and allow Solaris' patch to runSascha Schumann1999-10-061-1/+2
| | | | | buildconf.
* Ignore already applied patches.Sascha Schumann1999-10-061-1/+1
| | | | | If somebody could make this work on Solaris, I'd appreciate it.
* Allow *.a and *.o as libtool objects, and hardcode runpaths intoSascha Schumann1999-10-061-2/+2
| | | | | | | shared libraries. (Both taken from FreeBSD's libtool port.)
* * --copy always, since we need to change ltmain.shSascha Schumann1999-10-061-2/+2
| | | | | * make patch on some obscure UNIX happy
* Apply patch automatically at buildconf timeSascha Schumann1999-10-051-2/+4
|
* automake does not find all subdirectories automatically.Sascha Schumann1999-10-051-1/+4
|
* 100% speedup in buildconf.Sascha Schumann1999-10-051-2/+2
| | | | | We have a top-level Makefile.am, so find becomes superflicious
* * archive-based convenience libraries completely replacedSascha Schumann1999-10-041-2/+2
| | | | | | | | | | | | | | | | | | | | | | with libtool components * SAPI targets can enable thread-safe mode and define shared/static/program build target * all configure scripts use the same config.cache * phplibdir is $(top_builddir)/modules to avoid permission problems * sapi/*/Makefile.inc are gone * runpath handling cleaned up * top-level Makefile.in obsoleted through Makefile.am * --enable-versioning uses libtool's cleaner and more portable -export-symbols feature