diff options
| author | Pierre Joye <pajoye@php.net> | 2009-01-13 13:30:30 +0000 |
|---|---|---|
| committer | Pierre Joye <pajoye@php.net> | 2009-01-13 13:30:30 +0000 |
| commit | db040195531398620613286e941fa1d439c17755 (patch) | |
| tree | 9494b7493dbf5d23374b07d94d891d649a13325a /ext/enchant | |
| parent | d2925999eddb8dbf76427bc543273bb30cc4c91d (diff) | |
| download | php-git-db040195531398620613286e941fa1d439c17755.tar.gz | |
- finish windows support
Diffstat (limited to 'ext/enchant')
| -rw-r--r-- | ext/enchant/config.w32 | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ext/enchant/config.w32 b/ext/enchant/config.w32 index f9ba6beafc..08075031a6 100644 --- a/ext/enchant/config.w32 +++ b/ext/enchant/config.w32 @@ -1,12 +1,15 @@ // $Id$ // vim:ft=javascript -ARG_ENABLE("enchant", "Enchant Support", "no"); +ARG_WITH("enchant", "Enchant Support", "no"); if (PHP_ENCHANT == "yes") { - if (CHECK_HEADER_ADD_INCLUDE("enchant.h", "CFLAGS_ENCHANT", PHP_ENCHANT)) { + if (CHECK_HEADER_ADD_INCLUDE("enchant.h", "CFLAGS_ENCHANT", PHP_ENCHANT+ ";" + PHP_PHP_BUILD + "\\include\\enchant") && + CHECK_HEADER_ADD_INCLUDE("glib.h", "CFLAGS_ENCHANT", PHP_ENCHANT+ ";" + PHP_PHP_BUILD + "\\include\\glib-2.0") && + CHECK_LIB("libenchant.lib", "enchant", PHP_ENCHANT) ) { EXTENSION("enchant", "enchant.c"); AC_DEFINE('HAVE_ENCHANT', 1, 'Have Enchant support', false); + ADD_FLAG("CFLAG_ENCHANT", "/D _WIN32"); } else { WARNING('Could not find enchant.h; skipping'); } |
