gnupg-pkcs11-scd -- PKCS#11 enabled gnupg scd.

Copyright (c) 2006-2007 Zeljko Vrba <zvrba@globalnet.hr>
Copyright (c) 2006-2017 Alon Bar-Lev <alon.barlev@gmail.com>

POSIX
	Dependencies:
	        dl
		pthread (nptl)
		pkcs11-helper
			http://www.opensc-project.org
		|| (
			OpenSSL>=0.9.7
				http://www.openssl.org
			GNUTLS>=1.4.4
				http://www.gnutls.org
		)
		libgpg-error>=1.3
			http://www.gnupg.org
		libassuan>=0.9.2
			http://www.gnupg.org
		libgcrypt>=1.2.2
			http://www.gnupg.org

	Build:
		$ ./configure
		$ make
		$ make install

Cross-MinGW32
	Notes:
		Supported single threaded server mode.
		Implementing multi-threaded server forces copy of win32 socket handling
		from gnupg, and it is GPLed. When libassuan will handle sockets we will
		be able to implement it.

	Dependencies:
		man2html
		pkcs11-helper
			http://www.opensc-project.org
		OpenSSL>=0.9.9
			http://www.openssl.org
		libgpg-error>=1.3
			http://www.gnupg.org
		libassuan>=0.9.2
			http://www.gnupg.org
		libgcrypt>=1.2.2
			http://www.gnupg.org

	Build:
		w32root=/tmp/gpg-win32

		OpenSSL
			./Configure --prefix=// --cross-compiler-prefix=mingw32- shared mingw
			make install INSTALL_PREFIX="${w32root}"

		libgpg-error
			./autogen.sh --build-w32
			make install

		libassuan
			./autogen.sh --build-w32
			make install

		libgcrypt
			./autogen.sh --build-w32
			make install

		gnupg-pkcs11-scd
			./configure --prefix=/ --host=mingw32 \
				--with-libgpg-error-prefix=${w32root} \
				--with-libassuan-prefix=${w32root} \
				--with-libgcrypt-prefix=${w32root} \
				PKG_CONFIG=true \
				OPENSSL_CFLAGS="-I${w32root}/include" \
				OPENSSL_LIBS="-L${w32root}/lib -lcrypto" \
				PKCS11_HELPER_CFLAGS="-I${w32root}/include" \
				PKCS11_HELPER_LIBS="-L${w32root}/lib -lpkcs11-helper" \
				PKCS11_HELPER_FEATURES="threading token certificate engine_crypto"
			make install DESTDIR="${w32root}"

Native-Cygwin
	Notes:
		Same as Cross-MinGW32

	Dependencies:
		Same as Cross-MinGW32

	Build:
		Same as Cross-MinGW32, replace --host=mingw32 with --with-cygwin-native.
