Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ext/bcmath/config.m4
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ libbcmath/src/sqrt.c libbcmath/src/zero.c libbcmath/src/debug.c libbcmath/src/do
libbcmath/src/rmzero.c libbcmath/src/str2num.c,
$ext_shared,,-I@ext_srcdir@/libbcmath/src -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1)
PHP_ADD_BUILD_DIR($ext_builddir/libbcmath/src)
AC_DEFINE(HAVE_BCMATH, 1, [Whether you have bcmath])
AC_DEFINE(HAVE_BCMATH, 1, [Define to 1 if you have the bcmath extension enabled.])
fi
2 changes: 1 addition & 1 deletion ext/bcmath/config.w32
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ if (PHP_BCMATH == "yes") {
num2long.c output.c recmul.c sqrt.c zero.c debug.c doaddsub.c \
nearzero.c num2str.c raise.c rmzero.c str2num.c", "bcmath");

AC_DEFINE('HAVE_BCMATH', 1, 'Have BCMATH library');
AC_DEFINE('HAVE_BCMATH', 1, 'Define to 1 if you have the bcmath extension enabled.');
}
2 changes: 1 addition & 1 deletion ext/bz2/config.m4
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ if test "$PHP_BZ2" != "no"; then
[
PHP_ADD_INCLUDE($BZIP_DIR/include)
PHP_ADD_LIBRARY_WITH_PATH(bz2, $BZIP_DIR/$PHP_LIBDIR, BZ2_SHARED_LIBADD)
AC_DEFINE(HAVE_BZ2,1,[ ])
AC_DEFINE(HAVE_BZ2, 1, [Define to 1 if you have the bz2 extension enabled.])
], [
AC_MSG_ERROR(bz2 module requires libbz2 >= 1.0.0)
], [
Expand Down
2 changes: 1 addition & 1 deletion ext/bz2/config.w32
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ if (PHP_BZ2 != "no") {
if (CHECK_LIB("libbz2_a.lib;libbz2.lib", "bz2", PHP_BZ2) &&
CHECK_HEADER_ADD_INCLUDE("bzlib.h", "CFLAGS_BZ2")) {
EXTENSION("bz2", "bz2.c bz2_filter.c");
AC_DEFINE('HAVE_BZ2', 1, 'Have BZ2 library');
AC_DEFINE('HAVE_BZ2', 1, 'Define to 1 if you have the bz2 extension enabled.');
// BZ2 extension does this slightly differently from others
if (PHP_BZ2_SHARED) {
ADD_FLAG("CFLAGS_BZ2", "/D PHP_BZ2_EXPORTS ");
Expand Down
2 changes: 1 addition & 1 deletion ext/calendar/config.m4
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ PHP_ARG_ENABLE([calendar],
[Enable support for calendar conversion])])

if test "$PHP_CALENDAR" = "yes"; then
AC_DEFINE(HAVE_CALENDAR,1,[ ])
AC_DEFINE(HAVE_CALENDAR, 1, [Define to 1 if you have the calendar extension enabled.])
PHP_NEW_EXTENSION(calendar, calendar.c dow.c french.c gregor.c jewish.c julian.c easter.c cal_unix.c, $ext_shared)
fi
2 changes: 1 addition & 1 deletion ext/calendar/config.w32
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ ARG_ENABLE("calendar", "calendar conversion support", "yes");
if (PHP_CALENDAR == "yes") {
EXTENSION("calendar", "calendar.c dow.c french.c gregor.c jewish.c \
julian.c easter.c cal_unix.c");
AC_DEFINE('HAVE_CALENDAR', 1, 'Have calendar');
AC_DEFINE('HAVE_CALENDAR', 1, 'Define to 1 if you have the calendar extension enabled.');
}
2 changes: 1 addition & 1 deletion ext/com_dotnet/config.w32
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ if (PHP_COM_DOTNET == "yes") {
com_handlers.c com_iterator.c com_misc.c com_olechar.c \
com_typeinfo.c com_variant.c com_wrapper.c com_saproxy.c com_persist.c",
null, "/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1");
AC_DEFINE('HAVE_COM_DOTNET', 1, 'Have COM_DOTNET support');
AC_DEFINE('HAVE_COM_DOTNET', 1, 'Define to 1 if you have the com_dotnet extension enabled.');
CHECK_HEADER_ADD_INCLUDE('mscoree.h', 'CFLAGS_COM_DOTNET');
}
2 changes: 1 addition & 1 deletion ext/ctype/config.m4
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ PHP_ARG_ENABLE([ctype],
[yes])

if test "$PHP_CTYPE" != "no"; then
AC_DEFINE(HAVE_CTYPE, 1, [ ])
AC_DEFINE(HAVE_CTYPE, 1, [Define to 1 if you have the ctype extension enabled.])
PHP_NEW_EXTENSION(ctype, ctype.c, $ext_shared)
fi
2 changes: 1 addition & 1 deletion ext/ctype/config.w32
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ ARG_ENABLE("ctype", "ctype", "yes");

if (PHP_CTYPE == "yes") {
EXTENSION("ctype", "ctype.c");
AC_DEFINE('HAVE_CTYPE', 1, 'Have ctype');
AC_DEFINE('HAVE_CTYPE', 1, 'Define to 1 if you have the ctype extension enabled.');
}
4 changes: 2 additions & 2 deletions ext/curl/config.m4
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ if test "$PHP_CURL" != "no"; then
esac

if test "$CURL_SSL" = yes; then
AC_DEFINE([HAVE_CURL_SSL], [1], [Have cURL with SSL support])
AC_DEFINE([HAVE_CURL_SSL], [1], [Have cURL with SSL support])

save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $CURL_CFLAGS"
Expand Down Expand Up @@ -65,7 +65,7 @@ int main(int argc, char *argv[])

PHP_CHECK_LIBRARY(curl,curl_easy_perform,
[
AC_DEFINE(HAVE_CURL,1,[ ])
AC_DEFINE(HAVE_CURL, 1, [Define to 1 if you have the curl extension enabled.])
],[
AC_MSG_ERROR(There is something wrong. Please check config.log for more information.)
],[
Expand Down
2 changes: 1 addition & 1 deletion ext/curl/config.w32
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ if (PHP_CURL != "no") {
CHECK_LIB("nghttp2.lib", "curl", PHP_CURL))
) {
EXTENSION("curl", "interface.c multi.c share.c curl_file.c");
AC_DEFINE('HAVE_CURL', 1, 'Have cURL library');
AC_DEFINE('HAVE_CURL', 1, 'Define to 1 if you have the curl extension enabled.');
AC_DEFINE('HAVE_CURL_SSL', 1, 'Have SSL suppurt in cURL');
ADD_FLAG("CFLAGS_CURL", "/D CURL_STATICLIB");
// TODO: check for curl_version_info
Expand Down
2 changes: 1 addition & 1 deletion ext/dba/config.m4
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,7 @@ if test "$HAVE_DBA" = "1"; then
else
AC_MSG_RESULT([yes])
fi
AC_DEFINE(HAVE_DBA, 1, [ ])
AC_DEFINE(HAVE_DBA, 1, [Define to 1 if you have the dba extension enabled.])
PHP_NEW_EXTENSION(dba, dba.c dba_cdb.c dba_dbm.c dba_gdbm.c dba_ndbm.c dba_db1.c dba_db2.c dba_db3.c dba_db4.c dba_flatfile.c dba_inifile.c dba_qdbm.c dba_tcadb.c dba_lmdb.c $cdb_sources $flat_sources $ini_sources, $ext_shared,, -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1)
PHP_ADD_BUILD_DIR($ext_builddir/libinifile)
PHP_ADD_BUILD_DIR($ext_builddir/libcdb)
Expand Down
2 changes: 1 addition & 1 deletion ext/dba/config.w32
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ if (PHP_DBA != "no") {
ADD_SOURCES("ext/dba/libcdb", "cdb.c cdb_make.c uint32.c", "dba");
ADD_SOURCES("ext/dba/libflatfile", "flatfile.c", "dba");
ADD_SOURCES("ext/dba/libinifile", "inifile.c", "dba");
AC_DEFINE('HAVE_DBA', 1, 'DBA support');
AC_DEFINE('HAVE_DBA', 1, 'Define to 1 if you have the dba extension enabled.');
ADD_FLAG("CFLAGS_DBA", "/D DBA_FLATFILE=1 /D DBA_CDB=1 /D DBA_CDB_MAKE=1 /D DBA_CDB_BUILTIN=1 /D DBA_INIFILE=1");

if (PHP_DB != "no") {
Expand Down
2 changes: 1 addition & 1 deletion ext/dom/config.m4
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ if test "$PHP_DOM" != "no"; then
fi

PHP_SETUP_LIBXML(DOM_SHARED_LIBADD, [
AC_DEFINE(HAVE_DOM,1,[ ])
AC_DEFINE(HAVE_DOM, 1, [Define to 1 if you have the dom extension enabled.])
PHP_NEW_EXTENSION(dom, [php_dom.c attr.c document.c domerrorhandler.c \
domstringlist.c domexception.c namelist.c \
processinginstruction.c cdatasection.c \
Expand Down
2 changes: 1 addition & 1 deletion ext/dom/config.w32
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ if (PHP_DOM == "yes") {
notation.c xpath.c dom_iterators.c typeinfo.c domerror.c \
domlocator.c namednodemap.c userdatahandler.c");

AC_DEFINE("HAVE_DOM", 1, "DOM support");
AC_DEFINE("HAVE_DOM", 1, "Define to 1 if you have the dom extension enabled.");

if (!PHP_DOM_SHARED) {
ADD_FLAG("CFLAGS_DOM", "/D LIBXML_STATIC ");
Expand Down
2 changes: 1 addition & 1 deletion ext/enchant/config.m4
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ if test "$PHP_ENCHANT" != "no"; then
PHP_EVAL_INCLINE($ENCHANT_CFLAGS)
PHP_EVAL_LIBLINE($ENCHANT_LIBS, ENCHANT_SHARED_LIBADD)

AC_DEFINE(HAVE_ENCHANT, 1, [ ])
AC_DEFINE(HAVE_ENCHANT, 1, [Define to 1 if you have the enchant extension enabled.])

PHP_CHECK_LIBRARY(enchant, enchant_get_version,
[
Expand Down
2 changes: 1 addition & 1 deletion ext/enchant/config.w32
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if (PHP_ENCHANT == "yes") {
CHECK_HEADER_ADD_INCLUDE("glib.h", "CFLAGS_ENCHANT", PHP_ENCHANT+ ";" + PHP_PHP_BUILD + "\\include\\glib-2.0") &&
CHECK_LIB("libenchant.lib", "enchant", PHP_ENCHANT) ) {
EXTENSION("enchant", "enchant.c");
AC_DEFINE('HAVE_ENCHANT', 1, 'Have Enchant support', false);
AC_DEFINE('HAVE_ENCHANT', 1, 'Define to 1 if you have the enchant extension enabled.', false);
AC_DEFINE('HAVE_ENCHANT_GET_VERSION', 1);
AC_DEFINE('HAVE_ENCHANT_BROKER_SET_PARAM', 1);
ADD_FLAG("CFLAG_ENCHANT", "/D _WIN32");
Expand Down
2 changes: 1 addition & 1 deletion ext/exif/config.m4
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ PHP_ARG_ENABLE([exif],
[Enable EXIF (metadata from images) support])])

if test "$PHP_EXIF" != "no"; then
AC_DEFINE(HAVE_EXIF, 1, [Whether you want EXIF (metadata from images) support])
AC_DEFINE(HAVE_EXIF, 1, [Define to 1 if you have the exif extension enabled.])
PHP_NEW_EXTENSION(exif, exif.c, $ext_shared,, -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1)
fi
2 changes: 1 addition & 1 deletion ext/exif/config.w32
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ if(PHP_EXIF != 'no')
{
if(ADD_EXTENSION_DEP('exif', 'mbstring'))
{
AC_DEFINE('HAVE_EXIF', 1, 'Have EXIF Support');
AC_DEFINE('HAVE_EXIF', 1, 'Define to 1 if you have the exif extension enabled.');

EXTENSION('exif', 'exif.c', null, '/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1');
}
Expand Down
2 changes: 1 addition & 1 deletion ext/ffi/config.m4
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ if test "$PHP_FFI" != "no"; then
PHP_EVAL_INCLINE($FFI_CFLAGS)
PHP_EVAL_LIBLINE($FFI_LIBS, FFI_SHARED_LIBADD)

AC_DEFINE(HAVE_FFI, 1, [Have ffi support])
AC_DEFINE(HAVE_FFI, 1, [Define to 1 if you have the ffi extension enabled.])

AC_CHECK_TYPES(long double)

Expand Down
2 changes: 1 addition & 1 deletion ext/ffi/config.w32
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ ARG_WITH('ffi', 'ffi support', 'no');
if (PHP_FFI != 'no') {
if (CHECK_HEADER_ADD_INCLUDE("ffi.h", "CFLAGS_FFI", PHP_FFI+ ";" + PHP_PHP_BUILD + "\\include") &&
CHECK_LIB("libffi.lib", "ffi", PHP_FFI)) {
AC_DEFINE('HAVE_FFI', 1, 'ffi support enabled');
AC_DEFINE('HAVE_FFI', 1, 'Define to 1 if you have the ffi extension enabled.');

if (!X64) {
AC_DEFINE('HAVE_FFI_FASTCALL', 1 ,'libffi supports fastcall calling convention');
Expand Down
2 changes: 1 addition & 1 deletion ext/ftp/config.m4
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ PHP_ARG_WITH([openssl-dir],
[no])

if test "$PHP_FTP" = "yes"; then
AC_DEFINE(HAVE_FTP,1,[Whether you want FTP support])
AC_DEFINE(HAVE_FTP, 1, [Define to 1 if you have the ftp extension enabled.])
PHP_NEW_EXTENSION(ftp, php_ftp.c ftp.c, $ext_shared)

dnl Empty variable means 'no'
Expand Down
2 changes: 1 addition & 1 deletion ext/ftp/config.w32
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ if (PHP_FTP != "no") {
AC_DEFINE('HAVE_FTP_SSL', 1, 'Have FTP over SSL support');
}

AC_DEFINE('HAVE_FTP', 1, 'Have FTP support');
AC_DEFINE('HAVE_FTP', 1, 'Define to 1 if you have the ftp extension enabled.');
}
2 changes: 1 addition & 1 deletion ext/gd/config.m4
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ dnl Various checks for GD features
PKG_CHECK_MODULES([GDLIB], [gdlib >= 2.1.0])
PHP_EVAL_LIBLINE($GDLIB_LIBS, GD_SHARED_LIBADD)
PHP_EVAL_INCLINE($GDLIB_CFLAGS)
AC_DEFINE(HAVE_LIBGD, 1, [ ])
AC_DEFINE(HAVE_LIBGD, 1, [Define to 1 if you have the gd extension enabled.])
PHP_GD_CHECK_VERSION

PHP_NEW_EXTENSION(gd, gd.c $extra_sources, $ext_shared)
Expand Down
2 changes: 1 addition & 1 deletion ext/gd/config.w32
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ if (PHP_GD != "no") {
gdtables.c gd_topal.c gd_wbmp.c gdxpm.c wbmp.c gd_xbm.c gd_security.c gd_transform.c \
gd_filter.c gd_pixelate.c gd_rotate.c gd_color_match.c gd_webp.c \
gd_crop.c gd_interpolation.c gd_matrix.c gd_bmp.c gd_tga.c", "gd");
AC_DEFINE('HAVE_LIBGD', 1, 'GD support');
AC_DEFINE('HAVE_LIBGD', 1, 'Define to 1 if you have the gd extension enabled.');
ADD_FLAG("CFLAGS_GD", " \
/D HAVE_GD_DYNAMIC_CTX_EX=1 \
/D HAVE_GD_BUNDLED=1 \
Expand Down
2 changes: 1 addition & 1 deletion ext/gmp/config.m4
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ if test "$PHP_GMP" != "no"; then

PHP_NEW_EXTENSION(gmp, gmp.c, $ext_shared,, -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1)
PHP_SUBST(GMP_SHARED_LIBADD)
AC_DEFINE(HAVE_GMP, 1, [ ])
AC_DEFINE(HAVE_GMP, 1, [Define to 1 if you have the gmp extension enabled.])
fi
2 changes: 1 addition & 1 deletion ext/gmp/config.w32
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if (PHP_GMP != "no") {
CHECK_HEADER_ADD_INCLUDE("gmp.h", "CFLAGS_GMP", PHP_GMP + ";" + PHP_PHP_BUILD + "\\include\\mpir")) {
EXTENSION("gmp", "gmp.c", null, "/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1");
PHP_INSTALL_HEADERS("ext/gmp", "php_gmp_int.h");
AC_DEFINE('HAVE_GMP', 1, 'GMP support');
AC_DEFINE('HAVE_GMP', 1, 'Define to 1 if you have the gmp extension enabled.');
} else {
WARNING("GMP not enabled; libraries and headers not found");
}
Expand Down
2 changes: 1 addition & 1 deletion ext/hash/config.m4
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ if test "$PHP_MHASH" != "no"; then
fi

dnl Defined for BC.
AC_DEFINE(HAVE_HASH_EXT,1,[Have HASH Extension])
AC_DEFINE(HAVE_HASH_EXT, 1, [Define to 1 if you have the hash extension enabled. (deprecated)])

if test $ac_cv_c_bigendian_php = yes; then
EXT_HASH_SHA3_SOURCES="hash_sha3.c"
Expand Down
2 changes: 1 addition & 1 deletion ext/hash/config.w32
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if (PHP_MHASH != 'no') {
}

// Defined for BC.
AC_DEFINE('HAVE_HASH_EXT', 1);
AC_DEFINE('HAVE_HASH_EXT', 1, 'Define to 1 if you have the hash extension enabled. (deprecated)');

PHP_HASH = 'yes';

Expand Down
2 changes: 1 addition & 1 deletion ext/imap/config.m4
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ PHP_ARG_WITH([imap-ssl],
if test "$PHP_IMAP" != "no"; then
PHP_SUBST(IMAP_SHARED_LIBADD)
PHP_NEW_EXTENSION(imap, php_imap.c, $ext_shared,, -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1)
AC_DEFINE(HAVE_IMAP,1,[ ])
AC_DEFINE(HAVE_IMAP, 1, [Define to 1 if you have the imap extension enabled.])

for i in $PHP_IMAP /usr/local /usr; do
IMAP_INC_CHK()
Expand Down
2 changes: 1 addition & 1 deletion ext/imap/config.w32
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ if (PHP_IMAP == "yes") {
EXTENSION("imap", "php_imap.c", true, "/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1");

ADD_FLAG("CFLAGS_IMAP", "/D HAVE_IMAP2000=1 /D HAVE_IMAP2004=1 /D HAVE_IMAP2007a=1 /D HAVE_IMAP2007b=1 /D HAVE_IMAP_SSL=1");
AC_DEFINE('HAVE_IMAP', 1, 'Have IMAP support', true);
AC_DEFINE('HAVE_IMAP', 1, 'Define to 1 if you have the imap extension enabled.');
AC_DEFINE('HAVE_RFC822_OUTPUT_ADDRESS_LIST', 1, 'Have rfc822_output_address_list', true);
AC_DEFINE('HAVE_IMAP_MUTF7', 1, 'Have modified utf7 support', true);
AC_DEFINE('HAVE_NEW_MIME2TEXT', 1, 'Whether utf8_mime2text() has new signature');
Expand Down
1 change: 1 addition & 0 deletions ext/intl/config.m4
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ if test "$PHP_INTL" != "no"; then
PHP_SETUP_ICU(INTL_SHARED_LIBADD)
PHP_SUBST(INTL_SHARED_LIBADD)
INTL_COMMON_FLAGS="$ICU_CFLAGS -Wno-write-strings -D__STDC_LIMIT_MACROS -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"
AC_DEFINE(HAVE_INTL, 1, [Define to 1 if you have the intl extension enabled.])
PHP_NEW_EXTENSION(intl, php_intl.c \
intl_error.c \
intl_convert.c \
Expand Down
2 changes: 1 addition & 1 deletion ext/intl/config.w32
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ if (PHP_INTL != "no") {
}

ADD_FLAG("CFLAGS_INTL", "/EHsc /DUNISTR_FROM_CHAR_EXPLICIT=explicit /DUNISTR_FROM_STRING_EXPLICIT=explicit /DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 /DU_HIDE_OBSOLETE_UTF_OLD_H=1");
AC_DEFINE("HAVE_INTL", 1, "Internationalization support enabled");
AC_DEFINE("HAVE_INTL", 1, "Define to 1 if you have the intl extension enabled.");
} else {
WARNING("intl not enabled; libraries and/or headers not found");
}
Expand Down
2 changes: 1 addition & 1 deletion ext/json/config.m4
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ PHP_ARG_ENABLE([json],
[yes])

if test "$PHP_JSON" != "no"; then
AC_DEFINE([HAVE_JSON],1 ,[whether to enable JavaScript Object Serialization support])
AC_DEFINE(HAVE_JSON, 1, [Define to 1 if you have the json extension enabled.])

PHP_NEW_EXTENSION(json,
json.c \
Expand Down
1 change: 1 addition & 0 deletions ext/json/config.w32
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ ARG_ENABLE("json", "JavaScript Object Serialization support", "yes");

if (PHP_JSON != "no") {
EXTENSION('json', 'json.c', PHP_JSON_SHARED, "/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1");
AC_DEFINE("HAVE_JSON", 1, "Define to 1 if you have the json extension enabled.");

if (!FSO.FileExists("ext/json/json_scanner.c")) {
STDOUT.WriteLine("Generating ext/json/json_scanner.c");
Expand Down
2 changes: 1 addition & 1 deletion ext/ldap/config.m4
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ if test "$PHP_LDAP" != "no"; then

PHP_ADD_INCLUDE($LDAP_INCDIR)
PHP_SUBST(LDAP_SHARED_LIBADD)
AC_DEFINE(HAVE_LDAP,1,[ ])
AC_DEFINE(HAVE_LDAP, 1, [Define to 1 if you have the ldap extension enabled.])

dnl Save original values
_SAVE_CPPFLAGS=$CPPFLAGS
Expand Down
2 changes: 1 addition & 1 deletion ext/ldap/config.w32
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ if (PHP_LDAP != "no") {
AC_DEFINE('HAVE_LDAP_PARSE_RESULT', 1);
AC_DEFINE('HAVE_LDAP_PARSE_REFERENCE', 1);
AC_DEFINE('HAVE_LDAP_START_TLS_S', 1);
AC_DEFINE('HAVE_LDAP', 1);
AC_DEFINE('HAVE_LDAP', 1, "Define to 1 if you have the ldap extension enabled.");
AC_DEFINE('HAVE_LDAP_SASL', 1);
AC_DEFINE('LDAP_DEPRECATED', 1);
AC_DEFINE('HAVE_LDAP_CONTROL_FIND', 1);
Expand Down
2 changes: 1 addition & 1 deletion ext/libxml/config.w32
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ if (PHP_LIBXML == "yes") {
ADD_EXTENSION_DEP('libxml', 'iconv')) {

EXTENSION("libxml", "libxml.c", false /* never shared */, "/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1");
AC_DEFINE("HAVE_LIBXML", 1, "LibXML support");
AC_DEFINE("HAVE_LIBXML", 1, "Define to 1 if you have the libxml extension enabled.");
ADD_FLAG("CFLAGS_LIBXML", "/D LIBXML_STATIC /D LIBXML_STATIC_FOR_DLL /D HAVE_WIN32_THREADS ");
if (!PHP_LIBXML_SHARED) {
ADD_DEF_FILE("ext\\libxml\\php_libxml2.def");
Expand Down
2 changes: 1 addition & 1 deletion ext/libxml/config0.m4
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ if test "$PHP_LIBXML" != "no"; then
ext_shared=no

PHP_SETUP_LIBXML(LIBXML_SHARED_LIBADD, [
AC_DEFINE(HAVE_LIBXML,1,[ ])
AC_DEFINE(HAVE_LIBXML, 1, [Define to 1 if you have the libxml extension enabled.])
PHP_NEW_EXTENSION(libxml, [libxml.c], $ext_shared,, -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1)
PHP_INSTALL_HEADERS([ext/libxml/php_libxml.h])
])
Expand Down
2 changes: 1 addition & 1 deletion ext/mbstring/config.m4
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ PHP_ARG_ENABLE([mbregex],
[no])

if test "$PHP_MBSTRING" != "no"; then
AC_DEFINE([HAVE_MBSTRING],1,[whether to have multibyte string support])
AC_DEFINE([HAVE_MBSTRING], 1, [Define to 1 if you have the mbstring extension enabled.])

PHP_MBSTRING_ADD_BASE_SOURCES([mbstring.c php_unicode.c mb_gpc.c])

Expand Down
2 changes: 1 addition & 1 deletion ext/mbstring/config.w32
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ if (PHP_MBSTRING != "no") {

PHP_INSTALL_HEADERS("ext/mbstring", "mbstring.h libmbfl/config.h libmbfl/mbfl/eaw_table.h libmbfl/mbfl/mbfilter.h libmbfl/mbfl/mbfilter_8bit.h libmbfl/mbfl/mbfilter_pass.h libmbfl/mbfl/mbfilter_wchar.h libmbfl/mbfl/mbfl_allocators.h libmbfl/mbfl/mbfl_consts.h libmbfl/mbfl/mbfl_convert.h libmbfl/mbfl/mbfl_defs.h libmbfl/mbfl/mbfl_encoding.h libmbfl/mbfl/mbfl_filter_output.h libmbfl/mbfl/mbfl_ident.h libmbfl/mbfl/mbfl_language.h libmbfl/mbfl/mbfl_memory_device.h libmbfl/mbfl/mbfl_string.h");

AC_DEFINE('HAVE_MBSTRING', 1, 'Have mbstring support');
AC_DEFINE('HAVE_MBSTRING', 1, 'Define to 1 if you have the mbstring extension enabled.');

if (PHP_MBREGEX != "no") {
if (CHECK_HEADER_ADD_INCLUDE("oniguruma.h", "CFLAGS_MBSTRING", PHP_MBREGEX) &&
Expand Down
2 changes: 1 addition & 1 deletion ext/mysqli/config.m4
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ elif test "$PHP_MYSQLI" != "no"; then
[
PHP_EVAL_INCLINE($MYSQLI_INCLINE)
PHP_EVAL_LIBLINE($MYSQLI_LIBLINE, MYSQLI_SHARED_LIBADD)
AC_DEFINE(HAVE_MYSQLILIB, 1, [ ])
AC_DEFINE(HAVE_MYSQLILIB, 1, [Define to 1 if you have the mysqli extension enabled.])
PHP_CHECK_LIBRARY($MYSQL_LIB_NAME, mysql_set_character_set,
[ ],[
AC_MSG_ERROR([MySQLI doesn't support versions < 4.1.13 (for MySQL 4.1.x) and < 5.0.7 for (MySQL 5.0.x) anymore. Please update your libraries.])
Expand Down
4 changes: 2 additions & 2 deletions ext/mysqli/config.w32
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ if (PHP_MYSQLI != "no") {
if (PHP_MYSQLI == "yes" || PHP_MYSQLI == "mysqlnd") {
EXTENSION("mysqli", mysqli_source, PHP_MYSQLI_SHARED, "/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1");
AC_DEFINE('MYSQLI_USE_MYSQLND', 1, 'Using MySQL native driver');
AC_DEFINE('HAVE_MYSQLILIB', 1, 'Have MySQLi library');
AC_DEFINE('HAVE_MYSQLILIB', 1, 'Define to 1 if you have the mysqli extension enabled.');
ADD_EXTENSION_DEP('mysqli', 'mysqlnd', true);
MESSAGE("\tmysqlnd build");
PHP_INSTALL_HEADERS("ext/mysqli", "php_mysqli_structs.h");
Expand All @@ -33,7 +33,7 @@ if (PHP_MYSQLI != "no") {
"\\include;" + PHP_PHP_BUILD +
"\\include\\mysql;" + PHP_MYSQLI)) {
EXTENSION("mysqli", mysqli_source, PHP_MYSQLI_SHARED, "/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1");
AC_DEFINE('HAVE_MYSQLILIB', 1, 'Have MySQLi library');
AC_DEFINE('HAVE_MYSQLILIB', 1, 'Define to 1 if you have the mysqli extension enabled.');
MESSAGE("\tlibmysql build");
PHP_INSTALL_HEADERS("ext/mysqli", "php_mysqli_structs.h");
} else {
Expand Down
2 changes: 1 addition & 1 deletion ext/oci8/config.m4
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ if test "$PHP_OCI8" != "no"; then
PHP_ADD_LIBRARY(clntsh, 1, OCI8_SHARED_LIBADD)
PHP_ADD_LIBPATH($OCI8_DIR/$OCI8_LIB_DIR, OCI8_SHARED_LIBADD)
PHP_NEW_EXTENSION(oci8, oci8.c oci8_lob.c oci8_statement.c oci8_collection.c oci8_interface.c oci8_failover.c, $ext_shared)
AC_DEFINE(HAVE_OCI8,1,[Defined to 1 if the PHP OCI8 extension for Oracle Database is configured])
AC_DEFINE(HAVE_OCI8, 1, [Define to 1 if you have the oci8 extension enabled.])

PHP_SUBST_OLD(OCI8_SHARED_LIBADD)
PHP_SUBST_OLD(OCI8_DIR)
Expand Down
Loading