--- qemu-1.7.0/configure.orig 2013-12-15 08:38:07.584329114 +0100 +++ qemu-1.7.0/configure 2013-12-15 08:54:19.730954984 +0100 @@ -3543,9 +3543,11 @@ int main(void) { PK11_FreeSlot(0); return 0; } EOF # FIXME: do not include $glib_* in here + libcacard_libs="$($pkg_config --libs libcacard 2>/dev/null)" + libcacard_cflags="$($pkg_config --cflags libcacard 2>/dev/null)" nss_libs="$($pkg_config --libs nss 2>/dev/null) $glib_libs" nss_cflags="$($pkg_config --cflags nss 2>/dev/null) $glib_cflags" - test_cflags="$nss_cflags" + test_cflags="$libcacard_cflags" # The header files in nss < 3.13.3 have a bug which causes them to # emit a warning. If we're going to compile QEMU with -Werror, then # test that the headers don't have this bug. Otherwise we would pass @@ -3557,6 +3559,8 @@ $pkg_config --atleast-version=3.12.8 nss && \ compile_prog "$test_cflags" "$nss_libs"; then smartcard_nss="yes" + QEMU_CFLAGS="$QEMU_CFLAGS $libcacard_cflags $nss_cflags" + libs_softmmu="$libcacard_libs $nss_libs $libs_softmmu" else if test "$smartcard_nss" = "yes"; then feature_not_found "nss" @@ -4574,6 +4578,8 @@ if test "$smartcard_nss" = "yes" ; then echo "CONFIG_SMARTCARD_NSS=y" >> $config_host_mak + echo "LIBCACARD_LIBS=$libcacard_libs" >> $config_host_mak + echo "LIBCACARD_CFLAGS=$libcacard_cflags" >> $config_host_mak echo "NSS_LIBS=$nss_libs" >> $config_host_mak echo "NSS_CFLAGS=$nss_cflags" >> $config_host_mak fi --- qemu-1.3.0/Makefile.orig 2012-12-03 20:37:05.000000000 +0100 +++ qemu-1.3.0/Makefile 2012-12-16 11:08:58.001201236 +0100 @@ -111,9 +111,6 @@ include $(SRC_PATH)/Makefile.objs include $(SRC_PATH)/tests/Makefile endif -ifeq ($(CONFIG_SMARTCARD_NSS),y) -include $(SRC_PATH)/libcacard/Makefile -endif all: $(DOCS) $(TOOLS) $(HELPERS-y) recurse-all --- qemu-1.5.0/Makefile.objs.orig 2013-05-20 17:34:39.000000000 +0200 +++ qemu-1.5.0/Makefile.objs 2013-05-26 17:46:51.190865264 +0200 @@ -74,8 +74,6 @@ common-obj-$(CONFIG_SECCOMP) += qemu-seccomp.o -common-obj-$(CONFIG_SMARTCARD_NSS) += $(libcacard-y) - ###################################################################### # qapi --- qemu-1.5.0/hw/usb/ccid-card-passthru.c.orig 2013-05-20 17:34:39.000000000 +0200 +++ qemu-1.5.0/hw/usb/ccid-card-passthru.c 2013-05-26 17:58:20.660836330 +0200 @@ -12,7 +12,7 @@ #include "qemu/sockets.h" #include "monitor/monitor.h" #include "ccid.h" -#include "libcacard/vscard_common.h" +#include #define DPRINTF(card, lvl, fmt, ...) \ do { \