Advertisement
Guest User

Untitled

a guest
Jan 17th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.61 KB | None | 0 0
  1. # Check if zlib is needed
  2.  
  3. # Check whether --with-zlib was given.
  4. if test "${with_zlib+set}" = set; then :
  5. withval=$with_zlib;
  6. # option is given
  7. if test -d "$withval/lib"; then
  8. LDFLAGS="-L${withval}/lib ${LDFLAGS}"
  9. else
  10. LDFLAGS="-L${withval} ${LDFLAGS}"
  11. fi
  12. if test -d "$withval/include"; then
  13. CPPFLAGS="-I${withval}/include ${CPPFLAGS}"
  14. else
  15. CPPFLAGS="-I${withval} ${CPPFLAGS}"
  16. fi
  17.  
  18.  
  19. fi
  20.  
  21. # Check whether --enable-zlib was given.
  22. if test "${enable_zlib+set}" = set; then :
  23. enableval=$enable_zlib;
  24. if test "x$enableval" = "xno"; then
  25.  
  26. $as_echo "#define DISABLE_ZLIB /**/" >>confdefs.h
  27.  
  28. { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling zlib" >&5
  29. $as_echo "$as_me: Disabling zlib" >&6;}
  30. else
  31. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
  32. $as_echo_n "checking for deflate in -lz... " >&6; }
  33. if ${ac_cv_lib_z_deflate+:} false; then :
  34. $as_echo_n "(cached) " >&6
  35. else
  36. ac_check_lib_save_LIBS=$LIBS
  37. LIBS="-lz $LIBS"
  38. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  39. /* end confdefs.h. */
  40.  
  41. /* Override any GCC internal prototype to avoid an error.
  42. Use char because int might match the return type of a GCC
  43. builtin and then its argument prototype would still apply. */
  44. #ifdef __cplusplus
  45. extern "C"
  46. #endif
  47. char deflate ();
  48. int
  49. main ()
  50. {
  51. return deflate ();
  52. ;
  53. return 0;
  54. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement