xref: /PHP-7.3/ext/gmp/config.w32 (revision 8d3f8ca1)
1// vim:ft=javascript
2
3ARG_WITH("gmp", "Include GNU MP support.", "no");
4
5if (PHP_GMP != "no") {
6	if (CHECK_LIB("mpir_a.lib", "gmp", PHP_GMP) &&
7		CHECK_HEADER_ADD_INCLUDE("gmp.h", "CFLAGS_GMP", PHP_GMP +  ";" + PHP_PHP_BUILD + "\\include\\mpir")) {
8		EXTENSION("gmp", "gmp.c", null, "/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1");
9		PHP_INSTALL_HEADERS("ext/gmp", "php_gmp_int.h");
10		AC_DEFINE('HAVE_GMP', 1, 'GMP support');
11		AC_DEFINE('HAVE_MPIR', 1, 'MPIR support');
12	} else {
13		WARNING("GMP not enabled; libraries and headers not found");
14	}
15}
16