]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
configure: Pick up libseccomp include path
authorAndreas Färber <afaerber@suse.de>
Sun, 28 Apr 2013 14:27:26 +0000 (16:27 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 14 May 2013 10:30:53 +0000 (05:30 -0500)
openSUSE 12.3 has seccomp.h in /usr/include/libseccomp-1.0.1,
so add `pkg-config --cflags libseccomp` output to QEMU_CFLAGS.

Cc: qemu-stable@nongnu.org
Signed-off-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
(cherry picked from commit 372e47e9b5e31c493823d7f512716644fb02d0fd)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
configure

index e7468a98b7524a8cec05a2387ace9948f914dc2a..d7a39cc9fd9e9a288d959703d1980576f1d9c82a 100755 (executable)
--- a/configure
+++ b/configure
@@ -1435,6 +1435,7 @@ fi
 if test "$seccomp" != "no" ; then
     if $pkg_config --atleast-version=1.0.0 libseccomp --modversion >/dev/null 2>&1; then
         libs_softmmu="$libs_softmmu `$pkg_config --libs libseccomp`"
+        QEMU_CFLAGS="$QEMU_CFLAGS `$pkg_config --cflags libseccomp`"
        seccomp="yes"
     else
        if test "$seccomp" = "yes"; then