summaryrefslogtreecommitdiffstats
path: root/net-misc/rdesktop/files/rdesktop-1.6.0-smartcard_configure.patch
blob: a23796694429eb1a0c5f53b88ec70601ebbe2a5e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- configure.ac.orig	2009-07-05 16:13:23.000000000 +0200
+++ configure.ac	2009-07-05 16:19:39.000000000 +0200
@@ -108,7 +108,10 @@
 AC_ARG_ENABLE(smartcard, 
              [  --enable-smartcard	  Enables smart-card support.
 	     ],
-             [ 
+             [
+			  if test "$enableval" = no; then
+				  WITH_SCARD=0
+			  else
 	     	case "$OSTYPE" in
 			darwin*)
 				AC_CHECK_HEADER(PCSC/pcsclite.h, [WITH_SCARD=1], [WITH_SCARD=0])
@@ -143,6 +146,7 @@
 			[AC_MSG_RESULT(yes) AC_DEFINE(WITH_PCSC120, 1, [old version of PCSC])],
 			[AC_MSG_RESULT(no)]
 		)
+		fi
              ])
 
 AC_SUBST(SCARDOBJ)