cvs: pecl /lzf config.m4 lzfP.h
| From: | Marcin Gibula | Date: | Fri, 24 Oct 2003 17:22:35 +0000 |
| Subject: | cvs: pecl /lzf config.m4 lzfP.h | ||
| Groups: | php.pecl.cvs | ||
| Request: | Send a blank email to pecl-cvs+get-499@lists.php.net to get a copy of this message | ||
mg Fri Oct 24 13:22:35 2003 EDT
Modified files:
/pecl/lzf config.m4 lzfP.h
Log:
Added compilation option for optimizing lzf library for compression quality.
Index: pecl/lzf/config.m4
diff -u pecl/lzf/config.m4:1.1 pecl/lzf/config.m4:1.2
--- pecl/lzf/config.m4:1.1 Tue Oct 14 15:39:45 2003
+++ pecl/lzf/config.m4 Fri Oct 24 13:22:35 2003
@@ -1,9 +1,18 @@
-dnl $Id: config.m4,v 1.1 2003/10/14 19:39:45 mg Exp $
+dnl $Id: config.m4,v 1.2 2003/10/24 17:22:35 mg Exp $
dnl config.m4 for extension lzf
PHP_ARG_ENABLE(lzf, whether to enable lzf support,
[ --enable-lzf Enable lzf support])
+PHP_ARG_ENABLE(lzf-better-compression, whether to sacrifice speed in favour of compression ratio,
+[ --enable-lzf-better-compression Sacrifice speed in favour of compression ratio], no, no)
+
if test "$PHP_LZF" != "no"; then
+ if test "$PHP_LZF_BETTER_COMPRESSION" != "yes"; then
+ AC_DEFINE(ULTRA_FAST,1,[ ])
+ else
+ AC_DEFINE(ULTRA_FAST,0,[ ])
+ fi
+
PHP_NEW_EXTENSION(lzf, lzf.c lzf_c.c lzf_d.c, $ext_shared)
fi
Index: pecl/lzf/lzfP.h
diff -u pecl/lzf/lzfP.h:1.1 pecl/lzf/lzfP.h:1.2
--- pecl/lzf/lzfP.h:1.1 Tue Oct 14 15:39:45 2003
+++ pecl/lzf/lzfP.h Fri Oct 24 13:22:35 2003
@@ -53,9 +53,14 @@
* 9-10% for small, redundant, blocks and >>20% better speed in both cases)
* In short: enable this for binary data, disable this for text data.
*/
+
+#include "config.h"
+
+/*
#ifndef ULTRA_FAST
# define ULTRA_FAST 1
#endif
+*/
/*
* unconditionally aligning does not cost very much, so do it if unsure