]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
Update configure.ac to detect Tile architecture.
authorKen Steele <ken@tilera.com>
Mon, 20 May 2013 19:16:47 +0000 (15:16 -0400)
committerVictor Julien <victor@inliniac.net>
Tue, 21 May 2013 17:25:08 +0000 (19:25 +0200)
Detect if the architecture supports the Tilera mPipe packet processing
hardware. It it does, add the requried libraries and define HAVE_MPIPE.

configure.ac

index a0075512be530aca3f3597361a3b6ab2c4178503..775c16f834ee799dc1695bf4025021907de5f7d1 100644 (file)
@@ -384,6 +384,16 @@ AC_INIT(configure.ac)
 
 # libraries
 
+    AC_MSG_CHECKING([for Mpipe])
+    AC_COMPILE_IFELSE(
+        [AC_LANG_PROGRAM([[#include <gxio/mpipe.h>]])],
+        [
+        AC_MSG_RESULT([yes])
+        AC_DEFINE([HAVE_MPIPE],[1],[mPIPE support is available])
+        LDFLAGS="$LDFLAGS -lgxio -ltmc"
+        ],
+        [AC_MSG_RESULT([no])])
+
   #libpcre
     AC_ARG_WITH(libpcre_includes,
             [  --with-libpcre-includes=DIR  libpcre include directory],