Annotation of embedaddon/php/ext/iconv/config.w32, revision 1.1.1.2

1.1.1.2 ! misho       1: // $Id$
1.1       misho       2: // vim: ft=javascript
                      3: 
                      4: ARG_WITH("iconv", "iconv support", "yes");
                      5: 
                      6: if (PHP_ICONV != "no") {
                      7:        if ((CHECK_LIB("libiconv_a.lib", "iconv", PHP_ICONV) || CHECK_LIB("libiconv.lib", "iconv", PHP_ICONV) ||
                      8:                        CHECK_LIB("iconv_a.lib", "iconv", PHP_ICONV) || CHECK_LIB("iconv.lib", "iconv", PHP_ICONV)) &&
                      9:                CHECK_HEADER_ADD_INCLUDE("iconv.h", "CFLAGS_ICONV", PHP_ICONV)) {
                     10: 
                     11:                EXTENSION("iconv", "iconv.c");
                     12:                
                     13:                AC_DEFINE("HAVE_ICONV", 1, "Define if iconv extension is enabled");
                     14:                AC_DEFINE("HAVE_LIBICONV", 1, "Define if libiconv is available");
                     15:                AC_DEFINE("ICONV_ALIASED_LIBICONV", 1, "The iconv function is called iconv() in libiconv");
                     16:                AC_DEFINE("PHP_ICONV_IMPL", "\"libiconv\"", "Which iconv implementation to use");
                     17:                AC_DEFINE("ICONV_SUPPORTS_ERRNO", 1, "Whether iconv supports errno or not");
                     18:                ADD_FLAG("CFLAGS_ICONV", "/D PHP_ICONV_EXPORTS ");
                     19:                if (!PHP_ICONV_SHARED) {
                     20:                        ADD_DEF_FILE("ext\\iconv\\php_iconv.def");
                     21:                }
                     22:                PHP_INSTALL_HEADERS("", "ext/iconv");
                     23:        } else {
                     24:                WARNING("iconv support can't be enabled, libraries or headers are missing")
                     25:                PHP_ICONV = "no";
                     26:        }
                     27: }
                     28: 

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>