]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
configure: Introduce CLANG variable
authorHilko Bengen <bengen@hilluzination.de>
Tue, 22 Jan 2019 17:10:47 +0000 (18:10 +0100)
committerVictor Julien <victor@inliniac.net>
Tue, 20 Aug 2019 12:22:50 +0000 (14:22 +0200)
configure.ac

index 8200be342f602913e6d0ca986e0ca11f1668e013..712a67aa2d76689761a1374d03a3de3ec4ffe31d 100644 (file)
     AC_LANG_POP([C])
     AC_MSG_RESULT([${compiler}])
 
+    AC_ARG_WITH([clang],
+                [  --with-clang=PROGRAM    path to Clang for compiling eBPF code. Use if the main C compiler is not Clang.],
+                [CLANG="$withval"],
+                [AS_IF([test "$compiler" = clang],
+                       [CLANG="$CC"],
+                       [AC_PATH_PROG([CLANG],[clang])])])
+
+    AC_SUBST([CLANG])
+
     case "$compiler" in
         clang)
             CLANG_CFLAGS="-Wextra -Werror-implicit-function-declaration -Wno-error=unused-command-line-argument"