Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Check if zlib is needed
- # Check whether --with-zlib was given.
- if test "${with_zlib+set}" = set; then :
- withval=$with_zlib;
- # option is given
- if test -d "$withval/lib"; then
- LDFLAGS="-L${withval}/lib ${LDFLAGS}"
- else
- LDFLAGS="-L${withval} ${LDFLAGS}"
- fi
- if test -d "$withval/include"; then
- CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
- else
- CPPFLAGS="-I${withval} ${CPPFLAGS}"
- fi
- fi
- # Check whether --enable-zlib was given.
- if test "${enable_zlib+set}" = set; then :
- enableval=$enable_zlib;
- if test "x$enableval" = "xno"; then
- $as_echo "#define DISABLE_ZLIB /**/" >>confdefs.h
- { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling zlib" >&5
- $as_echo "$as_me: Disabling zlib" >&6;}
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
- $as_echo_n "checking for deflate in -lz... " >&6; }
- if ${ac_cv_lib_z_deflate+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lz $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char deflate ();
- int
- main ()
- {
- return deflate ();
- ;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement