- Timestamp:
- 2007-09-17T10:46:33Z (12 years ago)
- Location:
- branches/1.2
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.2
-
branches/1.2/config.m4
r466 r479 44 44 AC_DEFINE_UNQUOTED([XCACHE_MODULES], "$XCACHE_MODULES", [Define what modules is built with XCache]) 45 45 46 PHP_NEW_EXTENSION(xcache, $xcache_sources, $ext_shared)47 PHP_ADD_MAKEFILE_FRAGMENT()48 49 46 PHP_ARG_ENABLE(xcache-test, for XCache self test, 50 47 [ --enable-xcache-test XCache: Enable self test - FOR DEVELOPERS ONLY!!], no, no) … … 63 60 AC_DEFINE([HAVE_XCACHE_DPRINT], 1, [Define to enable XCache debug print functions]) 64 61 fi 62 63 PHP_NEW_EXTENSION(xcache, $xcache_sources, $ext_shared) 64 PHP_ADD_MAKEFILE_FRAGMENT() 65 65 66 66 AC_PATH_PROGS([XCACHE_AWK], [gawk awk]) -
branches/1.2/config.w32
r466 r479 71 71 DEFINE("XCACHE_INDENT", indent); 72 72 // }}} 73 // {{{ check for xcache-test 74 ARG_ENABLE("xcache-test", "XCache: Enable self test - FOR DEVELOPERS ONLY!!", "no"); 75 if (PHP_XCACHE_TEST != "no") { 76 ADD_FLAG("XCACHE_ENABLE_TEST", "-DXCACHE_ENABLE_TEST"); 77 xcache_sources += " xc_malloc.c"; 78 AC_DEFINE("HAVE_XCACHE_TEST", 1, "Define to enable XCache self test"); 79 } 80 else { 81 ADD_FLAG("XCACHE_ENABLE_TEST", ""); 82 } 83 // }}} 84 // {{{ check for xcache-test 85 ARG_ENABLE("xcache-dprint", "XCache: Enable self debug print functions - FOR DEVELOPERS ONLY!!", "no"); 86 if (PHP_XCACHE_DPRINT != "no") { 87 AC_DEFINE("HAVE_XCACHE_DPRINT", 1, "Define to enable XCache debug print functions"); 88 } 89 // }}} 73 90 // {{{ create extension 74 91 EXTENSION("xcache", xcache_sources); … … 109 126 ADD_FLAG("CFLAGS_XCACHE", "/I " + builddir); 110 127 /// }}} 111 // {{{ check for xcache-test112 ARG_ENABLE("xcache-test", "XCache: Enable self test - FOR DEVELOPERS ONLY!!", "no");113 if (PHP_XCACHE_TEST != "no") {114 ADD_FLAG("XCACHE_ENABLE_TEST", "-DXCACHE_ENABLE_TEST");115 xcache_sources += " xc_malloc.c";116 AC_DEFINE("HAVE_XCACHE_TEST", 1, "Define to enable XCache self test");117 }118 else {119 ADD_FLAG("XCACHE_ENABLE_TEST", "");120 }121 // }}}122 128 XCACHE_PROC_SOURCES=glob(srcdir + "\\processor\\*.m4").join(' '); 123 129 ADD_FLAG("XCACHE_PROC_SOURCES", XCACHE_PROC_SOURCES); 124 // {{{ check for xcache-test125 ARG_ENABLE("xcache-dprint", "XCache: Enable self debug print functions - FOR DEVELOPERS ONLY!!", "no");126 if (PHP_XCACHE_TEST != "no") {127 AC_DEFINE("HAVE_XCACHE_TEST", 1, "Define to enable XCache debug print functions");128 }129 // }}}130 130 // {{{ check for opcode_spec_def.h 131 131 STDOUT.Write("Checking if you have opcode_spec_def.h for XCache ... "); -
branches/1.2/xc_malloc.c
r392 r479 4 4 #include <stdio.h> 5 5 #include <string.h> 6 7 #ifdef HAVE_CONFIG_H 8 #include <config.h> 9 #endif 6 10 #include "xc_shm.h" 7 11 #include "php.h" -
branches/1.2/xc_shm.c
r466 r479 9 9 #include <stdlib.h> 10 10 #include <string.h> 11 12 #ifdef HAVE_CONFIG_H 13 #include <config.h> 14 #endif 11 15 #include "xc_shm.h" 12 16
Note: See TracChangeset
for help on using the changeset viewer.