aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2015-11-01 18:39:39 +0100
committerBoris Faure <billiob@gmail.com>2015-11-08 13:05:43 +0100
commit755a4c3f2f3feccaf9f43e97dd0ab78b647b0662 (patch)
treef8a5753c73cd58054f5e6e7d5be97022368ebf04 /configure.ac
parentadd code to fuzz terminology (wip) (diff)
downloadterminology-755a4c3f2f3feccaf9f43e97dd0ab78b647b0662.tar.gz
enable fuzzing with --enable-fuzzing
Only enable it if you know what you're doing
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac19
1 files changed, 19 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 1f8f651..8a99fcf 100644
--- a/configure.ac
+++ b/configure.ac
@@ -67,6 +67,24 @@ requirements="\
EFL_ENABLE_EO_API_SUPPORT
EFL_ENABLE_BETA_API_SUPPORT
+# check for fuzzing
+want_fuzzing="fuzzing"
+AC_ARG_ENABLE([fuzzing],
+ [AS_HELP_STRING([--enable-fuzzing],[Enable fuzzing on terminology. Binaries
+ are not suited for production. @<:@default=disabled@:>@])],
+ [
+ if test "x${enableval}" = "xyes" ; then
+ want_fuzzing="yes"
+ AC_DEFINE([ENABLE_FUZZING], [1], [Fuzzing enabled])
+ AC_SUBST([want_fuzzing])
+ else
+ want_fuzzing="no"
+ fi
+ ],
+ [want_fuzzing="no"])
+
+AM_CONDITIONAL([ENABLE_FUZZING], [test "${want_fuzzing}" = "yes"])
+
PKG_CHECK_MODULES([TERMINOLOGY], [${requirements}])
PKG_CHECK_MODULES([ELDBUS],
@@ -169,4 +187,5 @@ echo
echo "Features:"
echo " dbus................: $have_eldbus"
echo " gettext.............: $have_po"
+echo " fuzzing.............: $want_fuzzing"
echo