xref: /PHP-5.5/ext/sybase_ct/config.w32 (revision 5b062083)
1
2// $Id$
3// vim:ft=javascript
4
5ARG_WITH("sybase-ct", "SYBASE_CT support", "no");
6
7if (PHP_SYBASE_CT != "no") {
8
9	if (CHECK_HEADER_ADD_INCLUDE("ctpublic.h", "CFLAGS_SYBASE_CT", PHP_PHP_BUILD + "\\sybase\\include;" + PHP_SYBASE_CT) &&
10			(!X64 && CHECK_LIB("libsybcs.lib", "sybase_ct", PHP_PHP_BUILD + "\\sybase\\lib;" + PHP_SYBASE_CT) &&
11			CHECK_LIB("libsybct.lib", "sybase_ct", PHP_PHP_BUILD + "\\sybase\\lib;" + PHP_SYBASE_CT) ||
12			X64 && CHECK_LIB("libsybcs64.lib", "sybase_ct", PHP_PHP_BUILD + "\\sybase\\lib;" + PHP_SYBASE_CT) &&
13			CHECK_LIB("libsybct64.lib", "sybase_ct", PHP_PHP_BUILD + "\\sybase\\lib;" + PHP_SYBASE_CT))
14		) {
15		EXTENSION('sybase_ct', 'php_sybase_ct.c');
16		AC_DEFINE('HAVE_SYBASE_CT', 1);
17	} else {
18		WARNING("sybase_ct not enabled; libraries and headers not found");
19	}
20}
21
22