Skip to content

Commit b7a05cc

Browse files
committed
Add optional zlib support detection via libxml2 in extconf.
This defines HAVE_ZLIB_H macro when zlib is available through libxml2 dependency.
1 parent 1e3c3c5 commit b7a05cc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ext/libxml/extconf.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,10 @@ def crash(str)
6363
EOL
6464
end
6565

66+
# Optional zlib support via libxml2; defines HAVE_ZLIB_H if available.
67+
unless have_header("zlib.h")
68+
message "zlib not found: building without compression support\n"
69+
end
70+
6671
create_header()
6772
create_makefile('libxml_ruby')

0 commit comments

Comments
 (0)