summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac63
1 files changed, 58 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac
index 2ff719a..8429ae6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -35,6 +35,10 @@ AC_PROG_INSTALL
AC_PROG_MAKE_SET
LT_INIT
+PKG_PROG_PKG_CONFIG([0.28])
+
+PKG_CHECK_VAR([GLIB_MKENUMS], [glib-2.0], [glib_mkenums])
+
CFLAGS=""
AC_EGREP_CPP(yes,
@@ -241,6 +245,14 @@ AC_ARG_ENABLE([magic-support],
AS_HELP_STRING([--disable-magic-support], [disable magic number recognition [default=no]]),
[], [enable_magic_support=yes])
+AC_ARG_ENABLE([jsonglib-support],
+ AS_HELP_STRING([--disable-jsonglib-support], [disable jsonglib support [default=no]]),
+ [], [enable_jsonglib_support=yes])
+
+AC_ARG_ENABLE([hs-support],
+ AS_HELP_STRING([--disable-hs-support], [disable hs number recognition [default=no]]),
+ [], [enable_hs_support=yes])
+
AC_ARG_ENABLE([python-bindings],
AS_HELP_STRING([--disable-python-bindings], [disable Python bindings [default=no]]),
[], [enable_python_bindings=yes])
@@ -585,10 +597,24 @@ if test "$libhs_found" = "yes"; then
libhs_version=`pkg-config libhs --modversion`
else
libhs_version='-'
+ enable_hs_support=''
+fi
+
+AM_CONDITIONAL([BUILD_HS_SUPPORT], [test "x$enable_hs_support" = "xyes"])
+
+if test "x$BUILD_HS_SUPPORT_TRUE" = "x"; then
+ # Hyperscan support is available and enabled
+ CPPFLAGS="$CPPFLAGS -DINCLUDE_HS_SUPPORT"
fi
-AC_SUBST(LIBHS_CFLAGS)
-AC_SUBST(LIBHS_LIBS)
+if test "x$enable_hs_support" = "xyes"; then
+
+ AC_SUBST(LIBHS_CFLAGS)
+ AC_SUBST(LIBHS_LIBS)
+
+ true # empty if/then body not allowed
+
+fi
#--- Checks for json-glib-1.0
@@ -600,8 +626,6 @@ if test "x$BUILD_JSONGLIB_SUPPORT_TRUE" = "x"; then
CPPFLAGS="$CPPFLAGS -DINCLUDE_JSONGLIB_SUPPORT"
fi
-curl
-
PKG_CHECK_MODULES(LIBJSONGLIB,json-glib-1.0 >= 1.6.6,[libjsonglib_found=yes],[libjsonglib_found=no])
@@ -621,6 +645,20 @@ if test "x$enable_json_glib_support" = "xyes"; then
fi
+#--- Checks for libzip
+
+PKG_CHECK_MODULES(LIBZIP,libzip >= 1.7.3,[libzip_found=yes],[libzip_found=no])
+
+if test "$libzip_found" = "yes"; then
+ libzip_version=`pkg-config libzip --modversion`
+else
+ libzip_version='-'
+fi
+
+AC_SUBST(LIBZIP_CFLAGS)
+AC_SUBST(LIBZIP_LIBS)
+
+
#--- Checks for Python
if test "x$enable_debug" = "xyes"; then
@@ -706,6 +744,8 @@ AC_CONFIG_FILES([stamp-h po/Makefile.in], [echo timestamp > stamp-h])
AC_CONFIG_COMMANDS([marshal], [echo -e "VOID:UINT64\nVOID:INT,UINT64,INT\nVOID:OBJECT,OBJECT\nVOID:ENUM,OBJECT\nVOID:ENUM,ENUM\nVOID:BOOLEAN,UINT64\nVOID:BOOLEAN,ULONG,ULONG\nVOID:INT,INT\nVOID:OBJECT,BOOLEAN\nVOID:ULONG,BOOLEAN\nVOID:DOUBLE,DOUBLE" > src/glibext/chrysamarshal.list])
+AC_CONFIG_COMMANDS([about], [./tools/about/gen.sh $version], [version=r$PACKAGE_VERSION])
+
AC_CONFIG_FILES([Makefile
doc/Makefile
pixmaps/Makefile
@@ -800,6 +840,7 @@ AC_CONFIG_FILES([Makefile
plugins/pychrysalide/gui/panels/Makefile
plugins/pychrysalide/mangling/Makefile
plugins/pychrysalide/plugins/Makefile
+ plugins/pynb/Makefile
plugins/python/Makefile
plugins/python/abackup/Makefile
plugins/python/apkfiles/Makefile
@@ -845,16 +886,20 @@ AC_CONFIG_FILES([Makefile
src/arch/operands/Makefile
src/common/Makefile
src/core/Makefile
+ src/data/Makefile
+ src/data/images/Makefile
src/debug/Makefile
src/format/Makefile
src/glibext/Makefile
src/glibext/generators/Makefile
src/glibext/options/Makefile
src/gtkext/Makefile
+ src/gtkext/bindings/Makefile
src/gtkext/graph/Makefile
src/gui/Makefile
src/gui/core/Makefile
src/gui/dialogs/Makefile
+ src/gui/dialogs/prefs/Makefile
src/gui/menus/Makefile
src/gui/panels/Makefile
src/gui/tb/Makefile
@@ -907,7 +952,8 @@ echo The client URL library....................... : $libcurl_version
echo The YAML support library..................... : $libyaml_version
echo The magic number recognition library......... : $libmagic_version
echo The high-performance matching library........ : $libhs_version
-echo The JSON Parser for GLib library............. : $libjsonglib_version
+echo The JSON Parser for the GLib library......... : $libjsonglib_version
+echo The library for handling ZIP archives........ : $libzip_version
echo
echo Available Python programming language........ : $python3_version
@@ -935,6 +981,12 @@ else
disable_magic_support="yes"
fi
+if test "x$enable_hs_support" = "xyes"; then
+ disable_hs_support="no"
+else
+ disable_hs_support="yes"
+fi
+
if test "x$enable_python_bindings" = "xyes"; then
disable_python_bindings="no"
else
@@ -947,6 +999,7 @@ echo Consider local resources..................... : $with_local_resources
echo Disable GTK support.......................... : $disable_gtk_support
echo Disable cURL support......................... : $disable_curl_support
echo Disable Magic support........................ : $disable_magic_support
+echo Disable Hyperscan support.................... : $disable_hs_support
echo Disable Python bindings...................... : $disable_python_bindings
echo Build a Python binary distribution........... : $build_python_package