Skip to content

Commit b1e52ca

Browse files
committed
Merge branch 'PHP-7.4'
2 parents 1df8175 + f349d79 commit b1e52ca

File tree

4 files changed

+19
-30
lines changed

4 files changed

+19
-30
lines changed

ext/enchant/config.m4

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ if test "$PHP_ENCHANT" != "no"; then
1515
[
1616
AC_DEFINE(HAVE_ENCHANT_BROKER_SET_PARAM, 1, [ ])
1717
AC_DEFINE(ENCHANT_VERSION_STRING, "1.5.x", [ ])
18+
], [ ], [
19+
$ENCHANT_LIBS
1820
])
1921

2022
PHP_NEW_EXTENSION(enchant, enchant.c, $ext_shared)

ext/ffi/config.m4

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,12 @@ PHP_ARG_WITH([ffi],
66
if test "$PHP_FFI" != "no"; then
77
PKG_CHECK_MODULES([FFI], [libffi >= 3.0.11])
88

9-
AC_CHECK_TYPES(long double)
9+
PHP_EVAL_INCLINE($FFI_CFLAGS)
10+
PHP_EVAL_LIBLINE($FFI_LIBS, FFI_SHARED_LIBADD)
1011

11-
PHP_CHECK_LIBRARY(ffi, ffi_call,
12-
[
13-
PHP_EVAL_INCLINE($FFI_CFLAGS)
14-
PHP_EVAL_LIBLINE($FFI_LIBS, FFI_SHARED_LIBADD)
15-
AC_DEFINE(HAVE_FFI,1,[ Have ffi support ])
16-
], [
17-
AC_MSG_ERROR(FFI module requires libffi)
18-
])
12+
AC_DEFINE(HAVE_FFI, 1, [Have ffi support])
13+
14+
AC_CHECK_TYPES(long double)
1915

2016
AC_CACHE_CHECK([for fastcall calling convention], ac_cv_ffi_fastcall,
2117
[

ext/skeleton/config.m4.in

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -62,25 +62,25 @@ if test "$PHP_%EXTNAMECAPS%" != "no"; then
6262
dnl LIBNAME=%EXTNAMECAPS% # you may want to change this
6363
dnl LIBSYMBOL=%EXTNAMECAPS% # you most likely want to change this
6464

65-
dnl If you need to check for a particular library function
66-
dnl and you are using pkg-config:
65+
dnl If you need to check for a particular library function (e.g. a conditional
66+
dnl or version-dependent feature) and you are using pkg-config:
6767
dnl PHP_CHECK_LIBRARY($LIBNAME, $LIBSYMBOL,
6868
dnl [
69-
dnl PHP_EVAL_INCLINE($LIBFOO_CFLAGS)
70-
dnl PHP_EVAL_LIBLINE($LIBFOO_LIBS, %EXTNAMECAPS%_SHARED_LIBADD)
71-
dnl AC_DEFINE(HAVE_%EXTNAMECAPS%LIB, 1, [ ])
69+
dnl AC_DEFINE(HAVE_%EXTNAMECAPS%_FEATURE, 1, [ ])
7270
dnl ],[
73-
dnl AC_MSG_ERROR([wrong %EXTNAME% lib version or lib not found])
71+
dnl AC_MSG_ERROR([FEATURE not supported by your %EXTNAME% library.])
72+
dnl ], [
73+
dnl $LIBFOO_LIBS
7474
dnl ])
7575

76-
dnl If you need to check for a particular library function
77-
dnl and you are not using pkg-config:
76+
dnl If you need to check for a particular library function (e.g. a conditional
77+
dnl or version-dependent feature) and you are not using pkg-config:
7878
dnl PHP_CHECK_LIBRARY($LIBNAME, $LIBSYMBOL,
7979
dnl [
8080
dnl PHP_ADD_LIBRARY_WITH_PATH($LIBNAME, $%EXTNAMECAPS%_DIR/$PHP_LIBDIR, %EXTNAMECAPS%_SHARED_LIBADD)
81-
dnl AC_DEFINE(HAVE_%EXTNAMECAPS%LIB,1,[ ])
81+
dnl AC_DEFINE(HAVE_%EXTNAMECAPS%_FEATURE, 1, [ ])
8282
dnl ],[
83-
dnl AC_MSG_ERROR([wrong %EXTNAME% lib version or lib not found])
83+
dnl AC_MSG_ERROR([FEATURE not supported by your %EXTNAME% library.])
8484
dnl ],[
8585
dnl -L$%EXTNAMECAPS%_DIR/$PHP_LIBDIR -lm
8686
dnl ])

ext/zip/config.m4

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,13 @@ if test "$PHP_ZIP" != "no"; then
77
PKG_CHECK_MODULES([LIBZIP], [libzip >= 0.11])
88

99
PHP_EVAL_INCLINE($LIBZIP_CFLAGS)
10+
PHP_EVAL_LIBLINE($LIBZIP_LIBS, ZIP_SHARED_LIBADD)
1011
LIBZIP_LIBDIR=`$PKG_CONFIG --variable=libdir libzip`
1112

12-
dnl Could not think of a simple way to check libzip for overwrite support
13-
PHP_CHECK_LIBRARY(zip, zip_open,
14-
[
15-
PHP_ADD_LIBRARY_WITH_PATH(zip, $LIBZIP_LIBDIR, ZIP_SHARED_LIBADD)
16-
AC_DEFINE(HAVE_LIBZIP,1,[ ])
17-
], [
18-
AC_MSG_ERROR(could not find usable libzip)
19-
], [
20-
-L$LIBZIP_LIBDIR
21-
])
13+
AC_DEFINE(HAVE_LIBZIP, 1, [ ])
2214

2315
PHP_CHECK_LIBRARY(zip, zip_file_set_encryption,
2416
[
25-
PHP_ADD_LIBRARY_WITH_PATH(zip, $LIBZIP_LIBDIR, ZIP_SHARED_LIBADD)
2617
AC_DEFINE(HAVE_ENCRYPTION, 1, [Libzip >= 1.2.0 with encryption support])
2718
], [
2819
AC_MSG_WARN(Libzip >= 1.2.0 needed for encryption support)

0 commit comments

Comments
 (0)