summaryrefslogtreecommitdiffstats
path: root/vendor/maxmind-db/reader/ext/config.w32
blob: 4eb18f84944d343529516f33e3997007ca83e7b5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
ARG_WITH("maxminddb", "Enable MaxMind DB Reader extension support", "no");

if (PHP_MAXMINDDB == "yes") {
	if (CHECK_HEADER_ADD_INCLUDE("maxminddb.h", "CFLAGS_MAXMINDDB", PHP_MAXMINDDB +  ";" + PHP_PHP_BUILD + "\\include\\maxminddb") &&
		CHECK_LIB("libmaxminddb.lib", "maxminddb", PHP_MAXMINDDB)) {
		EXTENSION("maxminddb", "maxminddb.c");
	} else {
		WARNING('Could not find maxminddb.h or libmaxminddb.lib; skipping');
	}
}