1// vim:ft=javascript 2 3ARG_WITH("bz2", "BZip2", "no"); 4 5if (PHP_BZ2 != "no") { 6 if (CHECK_LIB("libbz2_a.lib;libbz2.lib", "bz2", PHP_BZ2) && 7 CHECK_HEADER_ADD_INCLUDE("bzlib.h", "CFLAGS_BZ2")) { 8 EXTENSION("bz2", "bz2.c bz2_filter.c"); 9 AC_DEFINE('HAVE_BZ2', 1, "Define to 1 if the PHP extension 'bz2' is available."); 10 // BZ2 extension does this slightly differently from others 11 if (PHP_BZ2_SHARED) { 12 ADD_FLAG("CFLAGS_BZ2", "/D PHP_BZ2_EXPORTS "); 13 } 14 } else { 15 WARNING("bz2 not enabled; libraries and headers not found"); 16 } 17} 18