summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@yahoo.com>2017-08-06 22:23:41 +0200
committerJoel Klinghed <the_jk@yahoo.com>2017-08-06 22:25:44 +0200
commit178bb3a1ceab88f29aa7d0ceb453e76de172fd27 (patch)
tree09f830338d5490552ae878152de0f104cb7f6e5b /configure.ac
parent9d586aec3a5615377e389318e97e7d756c970c96 (diff)
Add protools, used for getting content out of packages
Only HTTP protocol implemented yet, but with gzip, deflate and bzip2 suport
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac22
1 files changed, 22 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index c49c2e3..e649ca1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -179,6 +179,27 @@ AM_CONDITIONAL([HAVE_GTK],[test "x$have_gtk" = "x1"])
AM_CONDITIONAL([HAVE_GUI],[test "x$have_gtk" = "x1" -o "x$have_qt" = "x1"])
+comp_names=''
+# zlib
+AX_CHECK_ZLIB([
+ comp_names="${comp_names}zlib "
+ AC_DEFINE([HAVE_ZLIB], [1], [define to 1 if you have zlib])
+ ZLIB_CFLAGS="-I${ZLIB_HOME}/include"
+ ZLIB_LIBS="-L${ZLIB_HOME}/lib -lz"
+ ])
+AC_SUBST([ZLIB_CFLAGS])
+AC_SUBST([ZLIB_LIBS])
+
+# bzip2
+AX_CHECK_BZLIB([
+ comp_names="${comp_names}bzip2 "
+ AC_DEFINE([HAVE_BZIP2], [1], [define to 1 if you have bzip2])
+ BZIP2_CFLAGS="-I${BZLIB_HOME}/include"
+ BZIP2_LIBS="-L${BZLIB_HOME}/lib -lbz2"
+ ])
+AC_SUBST([BZIP2_CFLAGS])
+AC_SUBST([BZIP2_LIBS])
+
AC_ARG_ENABLE([update-mimedb],
[AC_HELP_STRING([--disable-update-mimedb], [disable the update-mime-database after install])],
[enable_update_mimedb=$enableval],
@@ -196,4 +217,5 @@ AC_CONFIG_HEADERS([src/config.h])
AC_OUTPUT([Makefile src/Makefile data/Makefile test/Makefile])
AC_MSG_NOTICE([SSL library used: $ssl_name])
+AC_MSG_NOTICE([Compression libs: $comp_names])
AC_MSG_NOTICE([GUI toolkit: $gui_name])