]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
configure: fix llc detection on recent Debian
authorEric Leblond <eric@regit.org>
Tue, 5 Jan 2021 20:40:33 +0000 (21:40 +0100)
committerVictor Julien <victor@inliniac.net>
Sat, 9 Dec 2023 07:36:44 +0000 (08:36 +0100)
Where clang --version was returning:

clang version 9.0.1-15+b1
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin

Newer version like clang-10 on Debian are returning:

Debian clang version 10.0.1-8+b1
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin

As a result the parsing was failing to determine which llc was
available on the system.

Ticket: #6598

(cherry picked from commit 37b1595c20959353ec438860dc5a49bcae227aa8)

configure.ac

index 3f0254a2ab7e6bb40cf179ccefaa71c8bf9b7755..22c2099c3ae69ef721ca208981509e7038486449 100644 (file)
           [
             AS_IF([test "$CLANG" != no],
                   [
-                    llc_candidates=$($CLANG --version | \
+                    llc_candidates=$($CLANG --version | sed -e 's/.*clang version/clang version/' | \
                       awk '/^clang version/ {
                              split($3, v, ".");
                              printf("llc-%s.%s llc-%s llc", v[[1]], v[[2]], v[[1]])