-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.w32
40 lines (34 loc) · 1.43 KB
/
config.w32
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// $Id$
// vim:ft=javascript
ARG_ENABLE("sap", "Enable SAP remote function calls support", "no");
ARG_WITH("sap-nwrfcsdk", "SAP NetWeaver RFC SDK directory (available from SAP marketplace)", "no");
ARG_ENABLE("sap-unicode", "Disable unicode for non-unicode R/3 systems", "yes");
ARG_ENABLE("sap-pthreads", "Disable PThreads support", "yes");
if (PHP_SAP != "no")
{
var SAPNWRFCSDK_INCLUDE_DIR = null, SAPNWRFCSDK_LIB_DIR = null;
MESSAGE("SAP UNICODE:" + PHP_SAP_UNICODE + "\n");
if (PHP_SAP_UNICODE == "yes") {
AC_DEFINE("SAPwithUNICODE", 1, "SAP unicode conversion");
MESSAGE("Enabled unicode support for the NW RFC SDK");
}
if (PHP_ZTS == "yes" &&
CHECK_HEADER_ADD_INCLUDE("pthread.h", "CFLAGS_SAP") &&
CHECK_LIB("pthreadVC2.lib", "sap")
) {
AC_DEFINE("SAPwithPTHREADS", 1);
MESSAGE("Enabled pthreads support for sap extension");
}
if (PHP_SAP_NWRFCSDK != "no") {
SAPNWRFCSDK_INCLUDE_DIR = PHP_SAP_NWRFCSDK + "\\include";
SAPNWRFCSDK_LIB_DIR = PHP_SAP_NWRFCSDK + "\\lib";
}
if (!CHECK_HEADER_ADD_INCLUDE("sapnwrfc.h", "CFLAGS_SAP", SAPNWRFCSDK_INCLUDE_DIR) ||
!CHECK_LIB("sapnwrfc.lib", "sap", SAPNWRFCSDK_LIB_DIR) ||
!CHECK_LIB("libsapucum.lib", "sap", SAPNWRFCSDK_LIB_DIR)
) {
ERROR("Could not enable sap extension, SAP NW RFC SDK libraries and/or headers are missing. Try again using --with-sap-nwrfcsdk")
}
EXTENSION("sap", "php_sap.c", PHP_SAP_SHARED);
AC_DEFINE("HAVE_SAP", 1, "SAP remote function call support");
}