使锟斤拷 Windows 锟斤拷锟斤拷系统锟斤拷config.w32

锟斤拷展锟斤拷 config.w32 锟侥硷拷锟斤拷锟矫凤拷锟斤拷 config.m4 锟侥硷拷锟斤拷锟狡o拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷缘牟锟酵拷锟斤拷锟斤拷龋锟斤拷锟斤拷锟斤拷锟斤拷锟� Windows 锟斤拷锟斤拷锟侥o拷锟斤拷危锟斤拷锟斤拷锟绞癸拷锟� JavaScript 锟斤拷写锟侥★拷锟斤拷锟铰节诧拷锟斤拷锟斤拷锟� JavaScript 锟斤法锟斤拷目前锟斤拷锟斤拷锟斤拷 Win32 锟斤拷锟斤拷台锟斤拷锟解部锟斤拷锟角诧拷锟斤拷锟斤拷锟侥o拷锟斤拷为锟斤拷锟斤拷锟结供锟侥凤拷锟斤拷 config.m4 锟侥斤拷锟斤拷锟斤拷锟斤拷锟绞碉拷锟斤拷植锟斤拷

Example #1 config.w32 锟侥硷拷锟斤拷锟斤拷

// $Id$
// vim:ft=javascript
ARG_WITH("example", "for example support", "no");
ARG_ENABLE("example-debug", "for debugging support in example", "no")
ARG_WITH("example-extra", "for extra functionality in example", "no")
if (PHP_EXAMPLE != "no") {
    if (CHECK_LIB("libexample.lib", "example", PHP_EXAMPLE) &&
        CHECK_HEADER_ADD_INCLUDE("example.h", "CFLAGS_EXAMPLE", PHP_EXAMPLE + "\\include")) {
        
        if (PHP_EXAMPLE_DEBUG != "no") {
            AC_DEFINE('USE_EXAMPLE_DEBUG', 1, 'Debug support in example');
        }
        
        if (PHP_EXAMPLE_EXTRA != "no" &&
            CHECK_LIB("libexample-extra.lib", "example", PHP_EXAMPLE) &&
            CHECK_HEADER_ADD_INCLUDE("example-extra.h", "CFLAGS_EXAMPLE", PHP_EXAMPLE + ";" + PHP_PHP_BUILD + "\\include") {
            AC_DEFINE('HAVE_EXAMPLEEXTRA', 1, 'Extra functionality in example');
            HAVE_EXTRA = 1;
        } else {
            WARNING( "extra example functionality not enabled, lib not found" );
        }
        
        EXTENSION("example", "example.c");
        if (HAVE_EXTRA == 1) {
            ADD_SOURCES("example-extra.c");
        }
    } else {
        WARNING( "example not enabled; libraries not found" );
    }
}

counter 锟斤拷展锟斤拷 config.w32 锟侥硷拷

锟斤拷为锟斤拷使锟矫很多构锟斤拷系统锟斤拷锟斤拷锟皆o拷锟斤拷前锟斤拷锟斤拷锟截碉拷 counter 锟斤拷展锟斤拷一锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟接革拷锟津单碉拷 config.w32 锟侥硷拷锟斤拷

Example #2 counter's config.w32 file

// $Id$
// vim:ft=javascript
ARG_ENABLE("counter", "for counter support", "no");
if (PHP_COUNTER != "no") {
    EXTENSION("counter", "counter.c");
    ADD_SOURCE("counter-util.c");
}