[svn] GnuPG - r5287 - trunk

svn author wk cvs at cvs.gnupg.org
Tue Mar 9 13:50:48 CET 2010


Author: wk
Date: 2010-03-09 13:50:48 +0100 (Tue, 09 Mar 2010)
New Revision: 5287

Modified:
   trunk/ChangeLog
   trunk/configure.ac
Log:
Fix for latest libgpg-error.


Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2010-03-09 12:12:20 UTC (rev 5286)
+++ trunk/ChangeLog	2010-03-09 12:50:48 UTC (rev 5287)
@@ -1,3 +1,8 @@
+2010-03-09  Werner Koch  <wk at g10code.com>
+
+	* configure.ac: Add option --disable-ccid-driver.
+	(AH_BOTTOM): Define GPG_ERR_ENABLE_GETTEXT_MACROS.
+
 2010-02-26  Werner Koch  <wk at g10code.com>
 
 	* gl/mkdtemp.c (__set_errno) [W32CE]: Use gpg_err_set_errno.

Modified: trunk/configure.ac
===================================================================
--- trunk/configure.ac	2010-03-09 12:12:20 UTC (rev 5286)
+++ trunk/configure.ac	2010-03-09 12:50:48 UTC (rev 5287)
@@ -74,8 +74,8 @@
 use_bzip2=yes
 use_exec=yes
 disable_keyserver_path=no
+use_ccid_driver=yes
 
-
 GNUPG_BUILD_PROGRAM(gpg, yes)
 GNUPG_BUILD_PROGRAM(gpgsm, yes)
 GNUPG_BUILD_PROGRAM(agent, yes)
@@ -299,7 +299,20 @@
 [use_capabilities="$withval"],[use_capabilities=no])
 AC_MSG_RESULT($use_capabilities)
 
+
 #
+# Allow disabling of internal CCID support.
+# It is defined only after we confirm the library is available later
+#
+AC_MSG_CHECKING([whether to enable the internal CCID driver])
+AC_ARG_ENABLE(ccid-driver,
+              AC_HELP_STRING([--disable-ccid-driver],
+                             [disable the internal CCID driver]),
+              use_ccid_driver=$enableval)
+AC_MSG_RESULT($use_ccid_driver)
+
+
+#
 # To avoid double inclusion of config.h which might happen at some
 # places, we add the usual double inclusion protection at the top of
 # config.h.
@@ -428,6 +441,9 @@
 #define _ESTREAM_PRINTF_FREE          gcry_free
 #define _ESTREAM_PRINTF_EXTRA_INCLUDE "util.h"
 
+/* Under Windows we use the gettext code from libgpg-error.  */
+#define GPG_ERR_ENABLE_GETTEXT_MACROS
+
 #endif /*GNUPG_CONFIG_H_INCLUDED*/
 ])
 
@@ -636,14 +652,16 @@
 # libusb allows us to use the integrated CCID smartcard reader driver.
 #
 # FiXME: Use GNUPG_CHECK_LIBUSB and modify to use separate AC_SUBSTs.
-AC_CHECK_LIB(usb, usb_bulk_write,
-              [ LIBUSB_LIBS="$LIBUSB_LIBS -lusb"
-                AC_DEFINE(HAVE_LIBUSB,1,
-                         [defined if libusb is available])
-                have_libusb=yes
-             ])
+if test "$use_ccid_driver" = yes ; then
+  AC_CHECK_LIB(usb, usb_bulk_write,
+                [ LIBUSB_LIBS="$LIBUSB_LIBS -lusb"
+                  AC_DEFINE(HAVE_LIBUSB,1,
+                           [defined if libusb is available])
+                  have_libusb=yes
+               ])
+  AC_CHECK_FUNCS(usb_create_match)
+fi
 AC_SUBST(LIBUSB_LIBS)
-AC_CHECK_FUNCS(usb_create_match)
 
 #
 # Check wether it is necessary to link against libdl.




More information about the Gnupg-commits mailing list