aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure53
1 files changed, 48 insertions, 5 deletions
diff --git a/configure b/configure
index 761cebc1e..5addefc72 100755
--- a/configure
+++ b/configure
@@ -646,6 +646,7 @@ EGREP
646GREP 646GREP
647CPP 647CPP
648HAVE_APPARMOR 648HAVE_APPARMOR
649EXTRA_CFLAGS
649RANLIB 650RANLIB
650INSTALL_DATA 651INSTALL_DATA
651INSTALL_SCRIPT 652INSTALL_SCRIPT
@@ -2099,7 +2100,6 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
2099 2100
2100#AC_CONFIG_HEADERS([config.h]) 2101#AC_CONFIG_HEADERS([config.h])
2101 2102
2102
2103ac_ext=c 2103ac_ext=c
2104ac_cpp='$CPP $CPPFLAGS' 2104ac_cpp='$CPP $CPPFLAGS'
2105ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2105ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
@@ -3105,6 +3105,47 @@ else
3105fi 3105fi
3106 3106
3107 3107
3108HAVE_SPECTRE="no"
3109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Spectre mitigation support in gcc or clang compiler" >&5
3110$as_echo_n "checking for Spectre mitigation support in gcc or clang compiler... " >&6; }
3111if test "$CC" = "gcc"; then :
3112
3113 HAVE_SPECTRE="yes"
3114 $CC -mindirect-branch=thunk -c dummy.c || HAVE_SPECTRE="no"
3115 rm -f dummy.o
3116 if test "$HAVE_SPECTRE" = "yes"; then :
3117
3118 EXTRA_CFLAGS+=" -mindirect-branch=thunk "
3119
3120fi
3121
3122fi
3123if test "$CC" = "clang"; then :
3124
3125 HAVE_SPECTRE="yes"
3126 $CC -mretpoline -c dummy.c || HAVE_SPECTRE="no"
3127 rm -f dummy.o
3128 if test "$HAVE_SPECTRE" = "yes"; then :
3129
3130 EXTRA_CFLAGS+=" -mretpoline "
3131
3132fi
3133
3134fi
3135if test "$HAVE_SPECTRE" = "yes"; then :
3136
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3138$as_echo "yes" >&6; }
3139
3140fi
3141if test "$HAVE_SPECTRE" = "no"; then :
3142
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ... not available" >&5
3144$as_echo "... not available" >&6; }
3145
3146fi
3147
3148
3108HAVE_APPARMOR="" 3149HAVE_APPARMOR=""
3109# Check whether --enable-apparmor was given. 3150# Check whether --enable-apparmor was given.
3110if test "${enable_apparmor+set}" = set; then : 3151if test "${enable_apparmor+set}" = set; then :
@@ -3119,7 +3160,6 @@ if test "x$enable_apparmor" = "xyes"; then :
3119fi 3160fi
3120 3161
3121 3162
3122
3123ac_ext=c 3163ac_ext=c
3124ac_cpp='$CPP $CPPFLAGS' 3164ac_cpp='$CPP $CPPFLAGS'
3125ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3165ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
@@ -3531,7 +3571,7 @@ fi
3531fi 3571fi
3532if test "x$enable_apparmor" = "xyes"; then : 3572if test "x$enable_apparmor" = "xyes"; then :
3533 3573
3534 EXTRA_LDFLAGS+="-lapparmor " 3574 EXTRA_LDFLAGS+=" -lapparmor "
3535 3575
3536fi 3576fi
3537 3577
@@ -3725,7 +3765,7 @@ fi
3725if test "x$enable_gcov" = "xyes"; then : 3765if test "x$enable_gcov" = "xyes"; then :
3726 3766
3727 HAVE_GCOV="--coverage -DHAVE_GCOV " 3767 HAVE_GCOV="--coverage -DHAVE_GCOV "
3728 EXTRA_LDFLAGS+="-lgcov --coverage " 3768 EXTRA_LDFLAGS+=" -lgcov --coverage "
3729 3769
3730 3770
3731fi 3771fi
@@ -3823,7 +3863,7 @@ if test "$prefix" = /usr; then
3823 sysconfdir="/etc" 3863 sysconfdir="/etc"
3824fi 3864fi
3825 3865
3826ac_config_files="$ac_config_files Makefile src/lib/Makefile src/fcopy/Makefile src/fnet/Makefile src/firejail/Makefile src/fnetfilter/Makefile src/firemon/Makefile src/libtrace/Makefile src/libtracelog/Makefile src/firecfg/Makefile src/fbuilder/Makefile src/fsec-print/Makefile src/ftee/Makefile src/faudit/Makefile src/fseccomp/Makefile src/fldd/Makefile src/libpostexecseccomp/Makefile src/fsec-optimize/Makefile" 3866ac_config_files="$ac_config_files Makefile src/common.mk src/lib/Makefile src/fcopy/Makefile src/fnet/Makefile src/firejail/Makefile src/fnetfilter/Makefile src/firemon/Makefile src/libtrace/Makefile src/libtracelog/Makefile src/firecfg/Makefile src/fbuilder/Makefile src/fsec-print/Makefile src/ftee/Makefile src/faudit/Makefile src/fseccomp/Makefile src/fldd/Makefile src/libpostexecseccomp/Makefile src/fsec-optimize/Makefile"
3827 3867
3828cat >confcache <<\_ACEOF 3868cat >confcache <<\_ACEOF
3829# This file is a shell script that caches the results of configure 3869# This file is a shell script that caches the results of configure
@@ -4533,6 +4573,7 @@ for ac_config_target in $ac_config_targets
4533do 4573do
4534 case $ac_config_target in 4574 case $ac_config_target in
4535 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 4575 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4576 "src/common.mk") CONFIG_FILES="$CONFIG_FILES src/common.mk" ;;
4536 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;; 4577 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
4537 "src/fcopy/Makefile") CONFIG_FILES="$CONFIG_FILES src/fcopy/Makefile" ;; 4578 "src/fcopy/Makefile") CONFIG_FILES="$CONFIG_FILES src/fcopy/Makefile" ;;
4538 "src/fnet/Makefile") CONFIG_FILES="$CONFIG_FILES src/fnet/Makefile" ;; 4579 "src/fnet/Makefile") CONFIG_FILES="$CONFIG_FILES src/fnet/Makefile" ;;
@@ -5024,7 +5065,9 @@ echo " file transfer support: $HAVE_FILE_TRANSFER"
5024echo " overlayfs support: $HAVE_OVERLAYFS" 5065echo " overlayfs support: $HAVE_OVERLAYFS"
5025echo " git install support: $HAVE_GIT_INSTALL" 5066echo " git install support: $HAVE_GIT_INSTALL"
5026echo " busybox workaround: $BUSYBOX_WORKAROUND" 5067echo " busybox workaround: $BUSYBOX_WORKAROUND"
5068echo " Spectre compiler patch: $HAVE_SPECTRE"
5027echo " EXTRA_LDFLAGS: $EXTRA_LDFLAGS" 5069echo " EXTRA_LDFLAGS: $EXTRA_LDFLAGS"
5070echo " EXTRA_CFLAGS: $EXTRA_CFLAGS"
5028echo " fatal warnings: $HAVE_FATAL_WARNINGS" 5071echo " fatal warnings: $HAVE_FATAL_WARNINGS"
5029echo " Gcov instrumentation: $HAVE_GCOV" 5072echo " Gcov instrumentation: $HAVE_GCOV"
5030echo " Install contrib scripts: $HAVE_CONTRIB_INSTALL" 5073echo " Install contrib scripts: $HAVE_CONTRIB_INSTALL"