diff options
author | Ashok Narayanan <ashokn@cisco.com> | 1999-09-22 01:26:50 +0000 |
---|---|---|
committer | Ashok Narayanan <ashokn@cisco.com> | 1999-09-22 01:26:50 +0000 |
commit | 3dfa56c4984047d92a8df46f50b92111a8bdf574 (patch) | |
tree | e41c0cbc0a89e356df2ca7ef5af0596b8fe40fba /acinclude.m4 | |
parent | 453a4e95fb0b91201f2950bac43316f330353034 (diff) | |
download | wireshark-3dfa56c4984047d92a8df46f50b92111a8bdf574.tar.gz wireshark-3dfa56c4984047d92a8df46f50b92111a8bdf574.tar.bz2 wireshark-3dfa56c4984047d92a8df46f50b92111a8bdf574.zip |
This commit contains support for reading capture files compressed using
gzip. The zLib library is used for this purpose. If zLib is not available
(or it's use is disabled by the --disable-zlib option to configure), you
can still compile Ethereal but it will be unable to read compressed capture
files.
IMPORTANT:
Now all file accesses to capture files should be done through special macros.
Specifically, for any use of the following functions on capture files, replace them.
The arguments for the right-side functions are exactly the same as for the
original stdio functions.
fopen file_open
fdopen filed_open
fread file_read
fwrite file_write
fseek file_seek
fclose file_close
ferror file_error
svn path=/trunk/; revision=695
Diffstat (limited to 'acinclude.m4')
-rw-r--r-- | acinclude.m4 | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index 14602c1958..dc13163add 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -192,6 +192,15 @@ AC_DEFUN(AC_ETHEREAL_PCAP_CHECK, ]) # +# AC_ETHEREAL_ZLIB_CHECK +# +AC_DEFUN(AC_ETHEREAL_ZLIB_CHECK, +[ + AC_CHECK_HEADER(zlib.h,,enable_zlib=no) + AC_CHECK_LIB(z, gzopen,,enable_zlib=no) +]) + +# # AC_ETHEREAL_UCDSNMP_CHECK # AC_DEFUN(AC_ETHEREAL_UCDSNMP_CHECK, |