diff options
-rwxr-xr-x | configure | 13 | ||||
-rw-r--r-- | configure.ac | 6 |
2 files changed, 19 insertions, 0 deletions
@@ -705,6 +705,7 @@ SHELL' | |||
705 | ac_subst_files='' | 705 | ac_subst_files='' |
706 | ac_user_opts=' | 706 | ac_user_opts=' |
707 | enable_option_checking | 707 | enable_option_checking |
708 | enable_analyzer | ||
708 | enable_apparmor | 709 | enable_apparmor |
709 | enable_dbusproxy | 710 | enable_dbusproxy |
710 | enable_overlayfs | 711 | enable_overlayfs |
@@ -1358,6 +1359,7 @@ Optional Features: | |||
1358 | --disable-option-checking ignore unrecognized --enable/--with options | 1359 | --disable-option-checking ignore unrecognized --enable/--with options |
1359 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | 1360 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1360 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | 1361 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1362 | --enable-analyzer enable GCC 10 static analyzer | ||
1361 | --enable-apparmor enable apparmor | 1363 | --enable-apparmor enable apparmor |
1362 | --disable-dbusproxy disable dbus proxy | 1364 | --disable-dbusproxy disable dbus proxy |
1363 | --disable-overlayfs disable overlayfs | 1365 | --disable-overlayfs disable overlayfs |
@@ -3269,6 +3271,17 @@ else | |||
3269 | fi | 3271 | fi |
3270 | 3272 | ||
3271 | 3273 | ||
3274 | # Check whether --enable-analyzer was given. | ||
3275 | if test "${enable_analyzer+set}" = set; then : | ||
3276 | enableval=$enable_analyzer; | ||
3277 | fi | ||
3278 | |||
3279 | if test "x$enable_analyzer" = "xyes"; then : | ||
3280 | |||
3281 | EXTRA_CFLAGS+=" -fanalyzer" | ||
3282 | |||
3283 | fi | ||
3284 | |||
3272 | HAVE_APPARMOR="" | 3285 | HAVE_APPARMOR="" |
3273 | # Check whether --enable-apparmor was given. | 3286 | # Check whether --enable-apparmor was given. |
3274 | if test "${enable_apparmor+set}" = set; then : | 3287 | if test "${enable_apparmor+set}" = set; then : |
diff --git a/configure.ac b/configure.ac index 60dc5f42c..d62cad843 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -39,6 +39,12 @@ AX_CHECK_COMPILE_FLAG( | |||
39 | [HAVE_SPECTRE="yes" && EXTRA_CFLAGS+=" -fstack-protector-strong"] | 39 | [HAVE_SPECTRE="yes" && EXTRA_CFLAGS+=" -fstack-protector-strong"] |
40 | ) | 40 | ) |
41 | 41 | ||
42 | AC_ARG_ENABLE([analyzer], | ||
43 | AS_HELP_STRING([--enable-analyzer], [enable GCC 10 static analyzer])) | ||
44 | AS_IF([test "x$enable_analyzer" = "xyes"], [ | ||
45 | EXTRA_CFLAGS+=" -fanalyzer" | ||
46 | ]) | ||
47 | |||
42 | HAVE_APPARMOR="" | 48 | HAVE_APPARMOR="" |
43 | AC_ARG_ENABLE([apparmor], | 49 | AC_ARG_ENABLE([apparmor], |
44 | AS_HELP_STRING([--enable-apparmor], [enable apparmor])) | 50 | AS_HELP_STRING([--enable-apparmor], [enable apparmor])) |