termux-packages/x11-packages/qemu-common/configure.patch

90 lines
2.1 KiB
Diff
Raw Normal View History

2018-10-26 15:19:03 +02:00
diff -uNr qemu-3.0.0/configure qemu-3.0.0.mod/configure
--- qemu-3.0.0/configure 2018-08-14 22:10:34.000000000 +0300
2018-10-26 16:21:47 +02:00
+++ qemu-3.0.0.mod/configure 2018-10-26 16:49:45.253598370 +0300
2018-10-26 15:19:03 +02:00
@@ -2158,23 +2158,10 @@
2018-09-17 13:27:14 +02:00
LIBS="$LIBS -lz"
##########################################
-# lzo check
+# disable lzo check, force enable instead
-if test "$lzo" != "no" ; then
- cat > $TMPC << EOF
-#include <lzo/lzo1x.h>
-int main(void) { lzo_version(); return 0; }
-EOF
- if compile_prog "" "-llzo2" ; then
- libs_softmmu="$libs_softmmu -llzo2"
- lzo="yes"
- else
- if test "$lzo" = "yes"; then
- feature_not_found "liblzo2" "Install liblzo2 devel"
- fi
- lzo="no"
- fi
-fi
+libs_softmmu="$libs_softmmu -llzo2"
+lzo="yes"
##########################################
# snappy check
2018-10-26 15:19:03 +02:00
@@ -2196,22 +2183,9 @@
2018-09-17 13:27:14 +02:00
fi
##########################################
-# bzip2 check
+# disable bzip2 check, force enable bz2
-if test "$bzip2" != "no" ; then
- cat > $TMPC << EOF
-#include <bzlib.h>
-int main(void) { BZ2_bzlibVersion(); return 0; }
-EOF
- if compile_prog "" "-lbz2" ; then
- bzip2="yes"
- else
- if test "$bzip2" = "yes"; then
- feature_not_found "libbzip2" "Install libbzip2 devel"
- fi
- bzip2="no"
- fi
-fi
+bzip2="yes"
##########################################
# libseccomp check
2018-10-26 15:19:03 +02:00
@@ -3069,6 +3043,7 @@
2018-09-17 13:27:14 +02:00
# VNC SASL detection
if test "$vnc" = "yes" -a "$vnc_sasl" != "no" ; then
cat > $TMPC <<EOF
+#include <sys/types.h>
#include <sasl/sasl.h>
#include <stdio.h>
int main(void) { sasl_server_init(NULL, "qemu"); return 0; }
2018-10-26 15:19:03 +02:00
@@ -4126,16 +4101,6 @@
2018-09-17 13:27:14 +02:00
##########################################
# signalfd probe
signalfd="no"
-cat > $TMPC << EOF
-#include <unistd.h>
-#include <sys/syscall.h>
-#include <signal.h>
-int main(void) { return syscall(SYS_signalfd, -1, NULL, _NSIG / 8); }
-EOF
-
-if compile_prog "" "" ; then
- signalfd=yes
-fi
# check if eventfd is supported
eventfd=no
2018-10-26 15:19:03 +02:00
@@ -5622,7 +5587,7 @@
2018-09-17 13:27:14 +02:00
# We can only support ivshmem if we have eventfd
if [ "$eventfd" = "yes" ]; then
- ivshmem=yes
+ ivshmem=no
fi
tools=""