summaryrefslogtreecommitdiff
path: root/scripts/phpize.m4
Commit message (Collapse)AuthorAgeFilesLines
* Refactor undefining PACKAGE_* symbolsPeter Kokot2019-07-111-0/+2
| | | | | | | | | | Instead of patching configuration headers template generated by the given tools - autoheader, this moves patching these symbols to the configure step before creating and invoking the config.status and before the configuration header file is generated from the patched template. Closes GH-4374
* Remove some unused variablesPeter Kokot2019-07-081-4/+0
| | | | | | | - Variables php_abs_top_srcdir php_abs_top_builddir are no longer used. - ZEND_EXT_TYPE is always zend_extension and variable is no longer used. Closes GH-4378
* Normalize comments in *nix build system m4 filesPeter Kokot2019-05-121-13/+12
| | | | | | | | | Normalization include: - Use dnl for everything that can be ommitted when configure is built in favor of the shell comment character # which is visible in the output. - Line length normalized to 80 columns - Dots for most of the one line sentences - Macro definitions include similar pattern header comments now
* Always use pkg-config from the host architectureHugh McMaster2019-04-291-0/+1
|
* Move acinclude.m4 to build/php.m4Peter Kokot2019-04-231-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 AC_INIT in configure.ac and PHP versionsPeter Kokot2019-04-071-1/+2
| | | | | | | | | 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.
* Refactor PHP_PROG_BISON and PHP_PROG_RE2CPeter Kokot2019-03-301-1/+0
| | | | | | | | | | | | | | | | | This patch refactors these macros to also checks for the required given versions of bison and re2c. - PHP_PROG_RE2C and PHP_PROG_BISON take optional args - minmimum version required, and bison also excluded versions. - Instead of caching values this uses manual checking and messaging outputs. - It looks like the minimum version of RE2C 0.13.4 is working ok so far. The genfiles script improvements: - Add make override in genfiles - Move checkings from makedist to genfiles - Refactored output messages - Various minor enhancements
* Add AS_HELP_STRING to *nix build configure optionsPeter Kokot2019-03-071-4/+11
| | | | | | | | The Autoconf's default AS_HELP_STRING macro can properly format help strings [1] so watching out if columns are aligned manually is not anymore. [1] https://www.gnu.org/software/autoconf/manual/autoconf.html#Pretty-Help-Strings
* Remove AC_PROG_CC_C_OPeter Kokot2019-03-031-1/+0
| | | | | | The AC_PROG_CC_C_O macro checks if compiler can use both -c and -o options together and if not it defines the NO_MINUS_C_MINUS_O symbol. It is not used in current codebase and therefore removed.
* Set AC_CONFIG_AUX_DIR to build directoryPeter Kokot2018-12-101-0/+1
| | | | | | | | | | | | | | | | The Autoconf macro AC_CONFIG_AUX_DIR can set the location of the auxiliary build tools such as config.guess, config.sub, and bundled libtool scripts and moves these bundled files from the root directory to the build subdirectory. Additionally some changes in this context or as a part of obsoletion: - The LT_TARGETS variable in build/build2.mk file was once used as a part of the Automake step. It's not used anymore and has been refactored to separate makedist script directly. - ltconfig is not used anymore since libtool 1.4+ cf8d1563c27a70fdd24055c1e80218ec7b5962d6 - phpize file locations for the config.guess, config.sub, and ltmain.sh has been refactored accordingly.
* Merge branch 'PHP-7.3'Peter Kokot2018-10-191-1/+0
|\ | | | | | | | | | | | | | | * PHP-7.3: [ci skip] Update NEWS [ci skip] Update NEWS [ci skip] Update NEWS Fix #77035: The phpize and ./configure create redundant .deps file
| * Merge branch 'PHP-7.2' into PHP-7.3Peter Kokot2018-10-191-1/+0
| |\ | | | | | | | | | | | | | | | | | | * PHP-7.2: [ci skip] Update NEWS [ci skip] Update NEWS Fix #77035: The phpize and ./configure create redundant .deps file
| | * Merge branch 'PHP-7.1' into PHP-7.2Peter Kokot2018-10-191-1/+0
| | |\ | | | | | | | | | | | | | | | | | | | | * PHP-7.1: [ci skip] Update NEWS Fix #77035: The phpize and ./configure create redundant .deps file
| | | * Fix #77035: The phpize and ./configure create redundant .deps filePeter Kokot2018-10-191-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The `.deps` file(s) was once used by Automake and created to write dependencies to it. The file creation has been removed via the commit 779c11af21cf8a627b8f2f2edef9e9073c76ed94. The phpize and ./configure script create a redundant .deps file in a PECL extension directory which might cause confusions why is it used. Today it is no longer relevant so this redundant artefact can be removed in the phpize configure script.
| | | * Trim trailing whitespace in source code filesPeter Kokot2018-10-131-2/+2
| | | |
| | * | Trim trailing whitespace in source code filesPeter Kokot2018-10-131-2/+2
| | | |
* | | | Modernize the AC_PRESERVE_HELP_ORDER macro callPeter Kokot2018-10-111-1/+1
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | The Autoconf AC_PRESERVE_HELP_ORDER macro has been available since Autoconf 2.59c [1] and in PHP it has been called conditionally on two places to support older Autoconf versions. With recent updates and the macro can be called unconditionally. [1] http://git.savannah.gnu.org/cgit/autoconf.git/tree/NEWS
* | | Bump minimum Autoconf requirement to 2.68Peter Kokot2018-10-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch syncs and bumps the minimum required version of Autoconf for the `phpize.m4` script and the main `configure.ac` from previously mixed 2.64 and 2.59 to 2.68. At the time of this writing Autoconf 2.63 is still the version on Centos 6, however by the PHP 7.3 release current systems out there should all have pretty much updated Autoconf versions to 2.64+ at least. Centos 7 already has Autoconf 2.69, for example. This provides more options to update and get current with the *nix build system and also avoids broken builds in certain cases as pointed out in the relevant discussion [1]. Additionally, phpize also already provides the `AX_CHECK_COMPILE_FLAG` Autoconf Archive m4 file that has Autoconf 2.64 minimum requirement. Autoconf 2.68 was released in 2010, 8 years ago, relative to this patch. [1] https://github.com/php/php-src/pull/3562
* | | Upgrade deprecated AC_OUTPUT macro callsPeter Kokot2018-07-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Autoconf 2.50 made several changes to macro calls. These include also arguments passed to AC_OUTPUT macro. The upgrading chapter in Autoconf documentation include an example of using AC_OUTPUT with AC_CONFIG_FILES and AC_CONFIG_COMMANDS: - https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Obsolete-Macros.html PHP 5.4 to 7.1 require Autoconf 2.59+, PHP 7.2+ require Autoconf 2.64+, and PHP 7.2 phpize script requires Autoconf 2.59+ which are all greater than above mentioned 2.50 version. Systems out there should well support this by now. This patch was created with the help of autoupdate script: autoupdate <file> More info on where exactly this got deprecated: - ftp://ftp.gnu.org/old-gnu/Manuals/autoconf-2.13/html_mono/autoconf.html - ftp://ftp.auckland.ac.nz/pub/gnu/Manuals/autoconf-2.52/html_chapter/autoconf_15.html - http://git.savannah.gnu.org/cgit/autoconf.git/tree/NEWS
* | | Trim trailing whitespaces in build filesPeter Kokot2018-07-291-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | Some editors utilizing .editorconfig automatically trim whitespaces. For convenience this patch removes whitespaces in certain build files: - ext/*/config*.m4 - configure.ac - acinclude.m4
* | | Replace AC_CONFIG_HEADER with AC_CONFIG_HEADERSPeter Kokot2018-07-071-1/+1
|/ / | | | | | | | | | | | | | | | | | | Autoconf doesn't mention the AC_CONFIG_HEADER macro since the v2.13 released in 1999 anywhere in the documentation. Future of this macro is unclear and commented as possible candidate for obsoletion in the autoconf source code. Since it is just a wrapper around the main AC_CONFIG_HEADERS macro, the functionality is the same, and also more clear to find it in the autoconf documentation and avoid possible future obsoletion.
* | 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>
* Fix wrong display in ZTS checkingYuchen Wang2015-05-121-1/+1
|
* Relax autoconf support from 2.60 to 2.59. This is the version available on ↵Christopher Jones2011-06-081-2/+2
| | | | Centos/RHEL/Oracle Linux 5.6
* Drop support for autoconf < 2.60 in trunk and the Rasmus Lerdorf2011-05-151-3/+2
| | | | | | new PHP_5_4 branch. autoconf >= 2.60 should finally be working now.
* - Fixed -g adding for gcc and g++ (former got it twice, latter not at all)Jani Taskinen2010-11-021-1/+1
|
* One change in trying to update Autoconf was missed. This makes phpize work ↵Gwynne Raskind2009-12-021-1/+1
| | | | again.
* Missed a few - now it really works with autoconf-2.64+Rasmus Lerdorf2009-11-251-1/+1
|
* MFH:- Fixed bug #48456 (CPPFLAGS not restored properly in phpize.m4)Jani Taskinen2009-06-021-0/+1
|
* - MFH: Get rid of the four different versions of zend_extension* and only useDerick Rethans2009-05-181-9/+1
| | | | | | | zend_extension. Because of the API identifier change in PHP 5.3 you also get a proper warning message now. #- [DOC]
* Fix cc detection in phpize according to changes in configure.inDavid Soria Parra2008-12-031-1/+14
|
* MFH:- Applied the missing parts to phpize.m4 for zend extension buildsJani Taskinen2008-07-311-2/+32
|
* MFH:- Detect whether debugging was enabled in PHP and drop optimizing flags ↵Jani Taskinen2008-07-301-0/+35
| | | | if so (merge from configure.in)
* wsJani Taskinen2008-07-301-1/+1
|
* MFB: - Fixed the fix for not requiring C++ alwaysDavid Soria Parra2008-07-271-1/+1
|
* MFH: Fixed a minor problem in not enabling c++/g++ when not needed.Jani Taskinen2008-07-251-4/+8
|
* MFH:- Fixed bug #42292 ($PHP_CONFIG not set for phpized builds)Jani Taskinen2007-08-141-5/+7
|
* MFH:- Fixed bug #42195 (C++ compiler required always)Jani Taskinen2007-08-061-0/+4
|
* MFHAntony Dovgal2007-07-251-6/+6
|
* MFH: cleanup & syncJani Taskinen2007-07-181-37/+31
|
* MFH: - Add missing CXXFLAGS_CLEAN variable.foobar2007-06-011-0/+2
|
* MFH: - Determine the shared/link lib suffixes in one macro.foobar2006-04-101-2/+1
|
* MFHAndrei Zmievski2006-04-081-0/+1
|
* MFH: - Fixed header installing under phpize buildsfoobar2005-11-211-1/+6
|
* - Made it possible to do "make test" for phpized extensionsfoobar2005-08-081-0/+2
|
* - Proper fix for phpize when dealing with PECLfoobar2005-06-051-0/+3
|
* - Make sure EGREP and SED get set early enough.foobar2005-05-271-2/+2
|
* - Added PHP_INSTALL_HEADERS() macrofoobar2005-05-071-3/+5
| | | | | | | - Fixed several VPATH build issues - Changed all awk calls to use $AWK - Changed all mkdir calls to use "$php_shtool mkdir"
* Removed unused DEFS substfoobar2005-03-171-1/+0
|
* Add missing substfoobar2005-03-041-0/+1
|