]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
Fix coccinelle autotools check 771/head
authorVictor Julien <victor@inliniac.net>
Tue, 14 Jan 2014 13:57:42 +0000 (14:57 +0100)
committerVictor Julien <victor@inliniac.net>
Tue, 14 Jan 2014 13:57:42 +0000 (14:57 +0100)
configure.ac

index ccef2dad81316e5204eedfaa4c56842fcacb820a..167287efb995f09dc32c0b704a96d21e1e749ea6 100644 (file)
     ])
 
     AC_ARG_ENABLE(coccinelle,
-           AS_HELP_STRING([--disable-coccinelle], [Disable coccinelle QA steps during make check])],,[enable_coccinelle=yes])
+           AS_HELP_STRING([--disable-coccinelle], [Disable coccinelle QA steps during make check])],[enable_coccinelle="$enableval"],[enable_coccinelle=yes])
     AS_IF([test "x$enable_coccinelle" = "xyes"], [
         AC_PATH_PROG(HAVE_COCCINELLE_CONFIG, spatch, "no")
         if test "$HAVE_COCCINELLE_CONFIG" = "no"; then
             echo "   able to run code checking with coccinelle  "
             echo "   get it from http://coccinelle.lip6.fr      "
             echo "   or install from your distribution          "
+            enable_coccinelle=no
         fi
     ])
     AM_CONDITIONAL([HAVE_COCCINELLE], [test "x$enable_coccinelle" != "xno"])