Skip to content

Commit 6961cd0

Browse files
committed
Ok, new attempt. Require autoconf-2.60 in this branch.
This simplifies things quite a bit by entirely getting rid of the m4 diversions which were messing things up. Now we are using the built-in autoconf diversions the way they were intended and the HELP output order is preserved through the AC_PRESERVE_HELP_ORDER macro which was introduced in autoconf-2.59c The next thing to clean up are the template warnings and I want to get to the bottom of the cache warning we generate as well. Now that I fixed the _cv_ stuff, I am not sure that is still a valid warning.
1 parent c4d3506 commit 6961cd0

File tree

2 files changed

+2
-48
lines changed

2 files changed

+2
-48
lines changed

configure.in

Lines changed: 2 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,15 @@
11
## $Id$ -*- autoconf -*-
22
dnl ## Process this file with autoconf to produce a configure script.
33

4-
divert(1001)
5-
6-
dnl ## Diversion 1 is the autoconf + automake setup phase. We also
7-
dnl ## set the PHP version, deal with platform-specific compile
8-
dnl ## options and check for the basic compile tools.
9-
10-
dnl ## Diversion 2 is the initial checking of OS features, programs,
11-
dnl ## libraries and so on.
12-
13-
dnl ## In diversion 3 we check for compile-time options to the PHP
14-
dnl ## core and how to deal with different system dependencies.
15-
dnl ## This includes whether debugging or short tags are enabled
16-
dnl ## and the default behaviour of php.ini options.
17-
dnl ## This is also where an SAPI interface is selected (choosing between
18-
dnl ## Apache module, CGI etc.)
19-
20-
dnl ## In diversion 4 we check user-configurable general settings.
21-
22-
dnl ## In diversion 5 we check which extensions should be compiled.
23-
dnl ## All of these are normally in the extension directories.
24-
dnl ## Diversion 5 is the last one. Here we generate files and clean up.
25-
264
dnl include Zend specific macro definitions first
275
dnl -------------------------------------------------------------------------
286
sinclude(Zend/acinclude.m4)
297

308
dnl Basic autoconf + automake initialization, generation of config.nice.
319
dnl -------------------------------------------------------------------------
3210

33-
AC_PREREQ(2.13)
11+
AC_PREREQ(2.60)
12+
AC_PRESERVE_HELP_ORDER
3413
AC_INIT(README.SVN-RULES)
3514

3615
PHP_CONFIG_NICE(config.nice)
@@ -304,16 +283,6 @@ sinclude(Zend/Zend.m4)
304283
sinclude(TSRM/threads.m4)
305284
sinclude(TSRM/tsrm.m4)
306285

307-
308-
divert(1002)
309-
310-
dnl ## Diversion 2 is where we set PHP-specific options and come up
311-
dnl ## with reasonable default values for them. We check for pthreads here
312-
dnl ## because the information is needed by the SAPI configuration.
313-
dnl ## This is also where an SAPI interface is selected (choosing between
314-
dnl ## Apache module, CGI etc.)
315-
316-
dnl .
317286
dnl -------------------------------------------------------------------------
318287

319288
PTHREADS_CHECK
@@ -344,13 +313,6 @@ if test "$enable_maintainer_zts" = "yes"; then
344313
PTHREADS_FLAGS
345314
fi
346315

347-
divert(1003)
348-
349-
dnl ## In diversion 3 we check for compile-time options to the PHP
350-
dnl ## core and how to deal with different system dependencies.
351-
dnl ## This includes whether debugging or short tags are enabled
352-
dnl ## and the default behaviour of php.ini options.
353-
354316
dnl Starting system checks.
355317
dnl -------------------------------------------------------------------------
356318

@@ -691,8 +653,6 @@ if test "x$php_crypt_r" = "x1"; then
691653
PHP_CRYPT_R_STYLE
692654
fi
693655

694-
divert(1004)
695-
696656
dnl ## In diversion 4 we check user-configurable general settings.
697657

698658
dnl General settings.
@@ -932,8 +892,6 @@ else
932892
AC_MSG_RESULT([using system default])
933893
fi
934894

935-
divert(1005)
936-
937895
dnl ## In diversion 5 we check which extensions should be compiled.
938896
dnl ## All of these are normally in the extension directories.
939897

ext/standard/config.m4

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
dnl $Id$ -*- autoconf -*-
22

3-
divert(1003)dnl
4-
53
dnl
64
dnl Check if flush should be called explicitly after buffered io
75
dnl
@@ -220,8 +218,6 @@ dnl
220218
AC_CHECK_FUNCS(getcwd getwd asinh acosh atanh log1p hypot glob strfmon nice fpclass isinf isnan)
221219
AC_FUNC_FNMATCH
222220

223-
divert(1005)dnl
224-
225221
dnl
226222
dnl Check if there is a support means of creating a new process
227223
dnl and defining which handles it receives

0 commit comments

Comments
 (0)