Skip to content

Commit 9622d00

Browse files
committed
Relax autoconf support from 2.60 to 2.59. This is the version available on Centos/RHEL/Oracle Linux 5.6
1 parent ddaddf6 commit 9622d00

File tree

4 files changed

+11
-10
lines changed

4 files changed

+11
-10
lines changed

NEWS

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ PHP NEWS
33
?? ??? 201?, PHP 5.4.0
44
- Upgraded bundled Sqlite3 to version 3.7.4. (Ilia)
55
- Upgraded bundled PCRE to version 8.10. (Ilia)
6-
- autoconf 2.60+ is now supported (and required) for generating the configure
7-
script with ./buildconf (Rasmus)
6+
- autoconf 2.59+ is now supported (and required) for generating the
7+
configure script with ./buildconf. Autoconf 2.60+ is desirable
8+
otherwise the configure help order may be incorrect. (Rasmus, Chris Jones)
89

910
- Removed legacy features:
1011
. break/continue $var syntax. (Dmitry)

build/buildcheck.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,18 @@ if test -z "$PHP_AUTOCONF"; then
2828
PHP_AUTOCONF='autoconf'
2929
fi
3030

31-
# autoconf 2.60 or newer
31+
# autoconf 2.59 or newer
3232
ac_version=`$PHP_AUTOCONF --version 2>/dev/null|head -n 1|sed -e 's/^[^0-9]*//' -e 's/[a-z]* *$//'`
3333
if test -z "$ac_version"; then
3434
echo "buildconf: autoconf not found."
35-
echo " You need autoconf version 2.60 or newer installed"
35+
echo " You need autoconf version 2.59 or newer installed"
3636
echo " to build PHP from SVN."
3737
exit 1
3838
fi
3939
IFS=.; set $ac_version; IFS=' '
40-
if test "$1" = "2" -a "$2" -lt "60" || test "$1" -lt "2"; then
40+
if test "$1" = "2" -a "$2" -lt "59" || test "$1" -lt "2"; then
4141
echo "buildconf: autoconf version $ac_version found."
42-
echo " You need autoconf version 2.60 or newer installed"
42+
echo " You need autoconf version 2.59 or newer installed"
4343
echo " to build PHP from SVN."
4444
exit 1
4545
else

configure.in

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ sinclude(Zend/acinclude.m4)
88
dnl Basic autoconf + automake initialization, generation of config.nice.
99
dnl -------------------------------------------------------------------------
1010

11-
AC_PREREQ(2.60)
11+
AC_PREREQ(2.59)
1212
AC_INIT(README.SVN-RULES)
13-
AC_PRESERVE_HELP_ORDER
13+
ifdef([AC_PRESERVE_HELP_ORDER], [AC_PRESERVE_HELP_ORDER], [])
1414

1515
PHP_CONFIG_NICE(config.nice)
1616

scripts/phpize.m4

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
dnl This file becomes configure.in for self-contained extensions.
22

3-
AC_PREREQ(2.60)
3+
AC_PREREQ(2.59)
44
AC_INIT(config.m4)
5-
AC_PRESERVE_HELP_ORDER
5+
ifdef([AC_PRESERVE_HELP_ORDER], [AC_PRESERVE_HELP_ORDER], [])
66

77
PHP_CONFIG_NICE(config.nice)
88

0 commit comments

Comments
 (0)