Commit graph

57 commits

Author SHA1 Message Date
Peter Kokot
2957651c5c Move Makefile.global and Makefile.gcov to build directory
These files can be stored in the build directory instead of bloating the
project root directory.
2019-03-04 12:30:42 +01:00
Peter Kokot
1c32d751c7 Remove mkinstalldirs, install-sh and missing
These scripts are part of Automake [1] and are in current *nix build
system not used anymore nor empty files need to be created.

[1] https://www.gnu.org/software/automake/manual/html_node/Auxiliary-Programs.html
2019-03-04 12:10:50 +01:00
Peter Kokot
3aeb7b0e77 Remove deprecated PHP_EXTENSION m4 macro
The PHP_EXTENSION macro was used before the introduction of the updated
build system in the 9d9d39a0de. The
extensions at that time possibly still used the Makefile.in and Automake
and the PHP_EXTENSION macro has been replaced with the PHP_NEW_EXTENSION
macro.

Today, the once deprecated macro can be removed in favor of only
PHP_NEW_EXTENSION macro.
2019-02-27 20:12:53 +01:00
Peter Kokot
7e445ef3b1 Set AC_CONFIG_AUX_DIR to build directory
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+
  cf8d1563c2
- phpize file locations for the config.guess, config.sub, and ltmain.sh
  has been refactored accordingly.
2018-12-10 08:11:44 +01:00
Eli Schwartz
2d03197749 ext/gd: Use pkg-config to detect the availability of freetype2
The latest version of freetype2 does not install freetype-config by
default, but pkg-config support has been there for approximately 15
years. In order to reliably detect freetype2, pkg-config *must* be used.

See:
https://savannah.nongnu.org/bugs/?53093
https://bugs.php.net/bug.php?id=76324
2018-11-07 13:05:47 +01:00
Peter Kokot
addcf2402d Remove mkdep.awk
The `mkdep.awk` file was part of the previous *nix build system and was
used to create a .deps file with a list of dependencies that could be
processed by Automake further on.

Newer build system was done via 9d9d39a0de
and outdated files removed via 22815419f8
so the current file in the PHP source code is not used anymore.

Additionally, the *.slo files were processed by this file. The *.slo
files also used to be generated by older libtool so today, these don't
get generated anymore.
2018-10-20 10:08:54 +02:00
Peter Kokot
1257664ca2 Merge branch 'PHP-7.3'
* 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
2018-10-19 00:12:48 +02:00
Peter Kokot
74131ca342 Merge branch 'PHP-7.2' into PHP-7.3
* PHP-7.2:
  [ci skip] Update NEWS
  [ci skip] Update NEWS
  Fix #77035: The phpize and ./configure create redundant .deps file
2018-10-19 00:10:22 +02:00
Peter Kokot
5531dde5e9 Merge branch 'PHP-7.1' into PHP-7.2
* PHP-7.1:
  [ci skip] Update NEWS
  Fix #77035: The phpize and ./configure create redundant .deps file
2018-10-19 00:07:42 +02:00
Peter Kokot
447b41f6bb Fix #77035: The phpize and ./configure create redundant .deps file
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
779c11af21.

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.
2018-10-19 00:02:09 +02:00
Peter Kokot
37c329d715 Trim trailing whitespace in source code files 2018-10-13 14:17:28 +02:00
Peter Kokot
3362620b5f Trim trailing whitespace in source code files 2018-10-13 14:16:33 +02:00
Peter Kokot
902d39a3a7 Trim trailing whitespace in source code files 2018-10-13 14:14:50 +02:00
Peter Kokot
7f6387b59a Trim trailing whitespace in source code files 2018-10-13 14:12:55 +02:00
Anatol Belski
8a5ababea2 Add missing packaging entries 2018-10-08 18:42:09 +02:00
Xinchen Hui
518a9f8bfd Fixed build extension by phpize 2018-01-17 15:09:04 +08:00
Brian Evans
2fe9208ee3
Use modern autotools name of configure.ac instead of configure.in
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>
2017-01-27 06:07:40 +00:00
Joe Watkins
e114e94c5f
fix broken build scripts #2124 2017-01-06 16:06:48 +00:00
Joe Watkins
8e447eafd9
fix broken build scripts #2124 2017-01-06 16:04:52 +00:00
Tianfeng
19312fa8f6 Fixbug: phpize --clean will delete include/*.h 2013-08-12 13:55:23 +08:00
Rasmus Lerdorf
438cc7f201 Drop support for autoconf < 2.60 in trunk and the
new PHP_5_4 branch. autoconf >= 2.60 should finally
be working now.
2011-05-15 06:09:21 +00:00
Jani Taskinen
df5d6fc09a - Fixed bug #48661 (phpize broken with non-bash shells) 2009-06-24 07:42:14 +00:00
Jani Taskinen
eae5e43243 - Added path sanity check (autotools + libtool do not cope with whitespace..) 2009-04-20 15:02:49 +00:00
foobar
68724e2489 - Improved php-config:
. Added --configure-options option to get configure line for current build
  . Added --php-sapis option which shows SAPIs available
  . Fixed problem with missing php binary when CLI is not build but CGI is.
- Fixed broken sed issues in phpize script
2007-06-29 01:09:54 +00:00
foobar
5b77718854 typofix 2006-07-23 23:40:19 +00:00
Jon Parise
3078bbabfd If the $PHP_AUTOCONF and $PHP_AUTOHEADER environmental variables are set
to full paths, the `shtool path` test would fail (because it only tests
for the existence of a bare filename in the current $PATH).  We now test
the the executability of $PHP_AUTOCONF and $PHP_AUTOHEADER before falling
back to the `shtool path` test.

Later on, phpize will execute $PHP_AUTOCONF and $PHP_AUTOHEADER directly,
so they will work fine as either absolute paths or files within $PATH.

Also, improving the grammar of the error messages in the failure cases.
2006-07-17 01:17:00 +00:00
Jon Parise
758ff2f9f1 Wrapping the $PHP_AUTOCONF and $PHP_AUTOHEADER error messages to fit
within 80 columns.
2006-07-17 00:46:00 +00:00
foobar
da629d8823 more test output files 2005-12-12 11:51:18 +00:00
foobar
f6c1212b17 - Cleanup test output files too 2005-12-12 11:49:30 +00:00
foobar
98f245e5f9 Fix cleanup 2005-08-08 16:58:12 +00:00
foobar
ee5fd96e37 - Made it possible to do "make test" for phpized extensions 2005-08-08 16:06:49 +00:00
Wez Furlong
7ba278b7b2 test -e doesn't work on solaris 2005-08-04 16:57:15 +00:00
foobar
8d2afe0e57 - This does not have to be egrep here 2005-06-15 17:13:39 +00:00
foobar
058205b67d - Fix phpize: need to eval path variables for them to be usable 2005-06-10 12:33:59 +00:00
foobar
d3f1bf4c35 - Fix paths when using --libdir and --includedir configure options 2005-06-07 21:56:09 +00:00
foobar
c28f59a1d5 - Proper fix for phpize when dealing with PECL 2005-06-05 12:58:59 +00:00
foobar
5fee97ca33 - Changed the PATH_SEPARATOR check to a macro
- Made sure we're generating aclocal.m4 in same way with both buildconf
  and phpize.
# Bug #33177
2005-05-30 06:55:20 +00:00
foobar
f3ee713a42 Fix the echo/backquote issues + aclocal 2005-04-07 22:03:02 +00:00
foobar
e2e53b6511 - Added the $PHP_AUTOCONF/$PHP_AUTOHEADER usage to phpize 2005-04-07 06:25:28 +00:00
foobar
0576cdc942 - Return of the automake requirement.
# Unfortunately we can't control what macros are used by the 3rd party
# extensions so..
2005-01-25 12:53:43 +00:00
foobar
5264cfb853 - Remove also autom4te.cache dir with phpize --clean 2005-01-22 20:30:05 +00:00
foobar
480a3b08d5 - Changed phpize not to require automake and libtool.
- Fixed build system to always use bundled libtool files.
2005-01-20 01:41:20 +00:00
Jan Lehnardt
536e7448f6 - do it right (phpize path issue) 2004-06-19 20:32:07 +00:00
Jan Lehnardt
f4f844af19 - phpize now can handle directories with spaces in their name (#28847) 2004-06-19 19:39:56 +00:00
Jan Lehnardt
84b8ffd491 - remove unneeded subroutine call 2004-01-03 14:03:46 +00:00
Derick Rethans
22843351bf - Show the API numbers again while phpizing. 2004-01-03 13:45:12 +00:00
Jan Lehnardt
1e1e3436f3 - restructured phpize
- added -v and --version to print out API numbers
 - discussed with Jani and Andi
2003-12-19 14:01:24 +00:00
foobar
8fec4cc3ec Missing "confdefs.h" in the cleanup-files-list 2003-11-14 03:21:00 +00:00
Ilia Alshanetsky
099adae29c Fixed bug #26168 (shtool availability check in phpize). 2003-11-10 04:33:49 +00:00
foobar
d14eba3407 - Use the shtool in $builddir/build instead 2003-08-27 18:00:06 +00:00