diff options
| author | Ilia Alshanetsky <iliaa@php.net> | 2005-12-02 01:59:48 +0000 |
|---|---|---|
| committer | Ilia Alshanetsky <iliaa@php.net> | 2005-12-02 01:59:48 +0000 |
| commit | 950de078898f49fddbf866c7612e2c65c4ccd43a (patch) | |
| tree | 315c7c5f5a3895c475d6592a9bb247932bcf407e /ext/hash/config.m4 | |
| parent | 20c3b72bf0ca9569703004c65395b55495e7bdc6 (diff) | |
| download | php-git-950de078898f49fddbf866c7612e2c65c4ccd43a.tar.gz | |
Added hash extension to PHP 5.1
Diffstat (limited to 'ext/hash/config.m4')
| -rw-r--r-- | ext/hash/config.m4 | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/ext/hash/config.m4 b/ext/hash/config.m4 new file mode 100644 index 0000000000..9371ce04b9 --- /dev/null +++ b/ext/hash/config.m4 @@ -0,0 +1,26 @@ +dnl $Id$ +dnl config.m4 for extension hash + +PHP_ARG_ENABLE(hash, whether to enable hash support, +[ --enable-hash Enable hash support]) + +if test "$PHP_HASH" != "no"; then + AC_DEFINE(HAVE_HASH_EXT,1,[Have HASH Extension]) + + AC_CHECK_SIZEOF(short, 2) + AC_CHECK_SIZEOF(int, 4) + AC_CHECK_SIZEOF(long, 4) + AC_CHECK_SIZEOF(long long, 8) + + EXT_HASH_SOURCES="hash.c hash_md.c hash_sha.c hash_ripemd.c hash_haval.c \ + hash_tiger.c hash_gost.c hash_snefru.c hash_whirlpool.c hash_adler32.c \ + hash_crc32.c" + EXT_HASH_HEADERS="php_hash.h php_hash_md.h php_hash_sha.h php_hash_ripemd.h \ + php_hash_haval.h php_hash_tiger.h php_hash_gost.h php_hash_snefru.h \ + php_hash_whirlpool.h php_hash_adler32.h php_hash_crc32.h php_hash_types.h" + + PHP_NEW_EXTENSION(hash, $EXT_HASH_SOURCES, $ext_shared) + ifdef([PHP_INSTALL_HEADERS], [ + PHP_INSTALL_HEADERS(ext/hash, $EXT_HASH_HEADERS) + ]) +fi |
