xref: /PHP-7.3/ext/standard/config.w32 (revision 2be27074)
1// vim:ft=javascript
2
3ARG_WITH("password-argon2", "Argon2 support", "no");
4
5if (PHP_PASSWORD_ARGON2 != "no") {
6	if (CHECK_LIB("argon2_a.lib;argon2.lib", null, PHP_PASSWORD_ARGON2)
7	&& CHECK_HEADER_ADD_INCLUDE("argon2.h", "CFLAGS")) {
8		if (!CHECK_FUNC_IN_HEADER("argon2.h", "argon2id_hash_raw", PHP_PHP_BUILD + "\\include", "CFLAGS")) {
9			ERROR("Please verify that Argon2 header and libaries >= 20161029 are installed");
10		}
11		AC_DEFINE('HAVE_ARGON2LIB', 1);
12	} else {
13		WARNING("Argon2 not enabled; libaries and headers not found");
14	}
15}
16
17ARG_WITH("config-file-scan-dir", "Dir to check for additional php ini files", "");
18
19AC_DEFINE("PHP_CONFIG_FILE_SCAN_DIR", PHP_CONFIG_FILE_SCAN_DIR);
20AC_DEFINE("PHP_USE_PHP_CRYPT_R", 1);
21
22CHECK_HEADER_ADD_INCLUDE("timelib_config.h", "CFLAGS_STANDARD", "ext/date/lib");
23
24ADD_FLAG("LIBS_STANDARD", "iphlpapi.lib");
25
26EXTENSION("standard", "array.c base64.c basic_functions.c browscap.c \
27	crc32.c crypt.c crypt_freesec.c crypt_blowfish.c crypt_sha256.c \
28	crypt_sha512.c  php_crypt_r.c \
29	cyr_convert.c datetime.c dir.c dl.c dns.c dns_win32.c exec.c \
30	file.c filestat.c formatted_print.c fsock.c head.c html.c image.c \
31	info.c iptc.c lcg.c link_win32.c mail.c math.c md5.c metaphone.c microtime.c \
32	net.c pack.c pageinfo.c quot_print.c rand.c mt_rand.c soundex.c \
33	string.c scanf.c syslog.c type.c uniqid.c url.c var.c \
34	versioning.c assert.c strnatcmp.c levenshtein.c incomplete_class.c \
35	url_scanner_ex.c ftp_fopen_wrapper.c http_fopen_wrapper.c \
36	php_fopen_wrapper.c credits.c css.c var_unserializer.c ftok.c sha1.c \
37	user_filters.c uuencode.c filters.c proc_open.c password.c \
38	streamsfuncs.c http.c flock_compat.c random.c hrtime.c", false /* never shared */,
39	'/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1');
40PHP_INSTALL_HEADERS("", "ext/standard");
41PHP_STANDARD = "yes";
42if (PHP_MBREGEX != "no") {
43	CHECK_HEADER_ADD_INCLUDE("oniguruma.h", "CFLAGS_STANDARD", PHP_MBREGEX + ";ext\\mbstring\\oniguruma")
44}
45ADD_MAKEFILE_FRAGMENT();
46PHP_INSTALL_HEADERS("", "ext/standard");
47