]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
build-sys: fix ./configure --enable-smack
authorEvgeny Vereshchagin <evvers@ya.ru>
Sat, 12 Dec 2015 03:43:45 +0000 (03:43 +0000)
committerEvgeny Vereshchagin <evvers@ya.ru>
Sat, 12 Dec 2015 03:53:22 +0000 (03:53 +0000)
Fixes:

$ ./configure ... --enable-smack
$ make src/core/load-fragment-gperf.c
$ grep -i smack src/core/load-fragment-gperf.c
{"Swap.SmackProcessLabel", config_parse_warn_compat, DISABLED_CONFIGURATION, 0},
...

should be
{"Swap.SmackProcessLabel", config_parse_exec_smack_process_label, 0, offsetof(Swap, exec_context)},
...

configure.ac

index c2222c376cf70e45ad0d33587e76bf3cae1cf5f4..0160d1045614041260f376df5feb0eacc29e5f73 100644 (file)
@@ -668,7 +668,7 @@ AC_ARG_ENABLE([smack], AS_HELP_STRING([--disable-smack],[Disable optional SMACK
                 esac],
                 [have_smack=auto])
 
-if test "x${have_smack}" = xauto; then
+if test "x${have_smack}" != xno; then
         M4_DEFINES="$M4_DEFINES -DHAVE_SMACK"
         have_smack=yes
 fi