mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
Allow disabling of card support.
* configure.ac: Add option --disable-card-support. Also add am_conditional and do not build scd if card support is enabled.
This commit is contained in:
parent
357b142e72
commit
8e0ba4ecd3
22
configure.ac
22
configure.ac
@ -1,6 +1,7 @@
|
|||||||
# configure.ac - for GnuPG 2.1
|
# configure.ac - for GnuPG 2.1
|
||||||
# Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
|
# Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
|
||||||
# 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc.
|
# 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc.
|
||||||
|
# Copyright (C) 2013, 2014 Werner Koch
|
||||||
#
|
#
|
||||||
# This file is part of GnuPG.
|
# This file is part of GnuPG.
|
||||||
#
|
#
|
||||||
@ -87,6 +88,7 @@ use_zip=yes
|
|||||||
use_bzip2=yes
|
use_bzip2=yes
|
||||||
use_exec=yes
|
use_exec=yes
|
||||||
disable_keyserver_path=no
|
disable_keyserver_path=no
|
||||||
|
card_support=yes
|
||||||
use_ccid_driver=yes
|
use_ccid_driver=yes
|
||||||
use_standard_socket=yes
|
use_standard_socket=yes
|
||||||
dirmngr_auto_start=no
|
dirmngr_auto_start=no
|
||||||
@ -388,6 +390,19 @@ AC_ARG_WITH(capabilities,
|
|||||||
[use_capabilities="$withval"],[use_capabilities=no])
|
[use_capabilities="$withval"],[use_capabilities=no])
|
||||||
AC_MSG_RESULT($use_capabilities)
|
AC_MSG_RESULT($use_capabilities)
|
||||||
|
|
||||||
|
#
|
||||||
|
# Check whether to disable the card support
|
||||||
|
AC_MSG_CHECKING([whether smartcard support is requested])
|
||||||
|
AC_ARG_ENABLE(card-support,
|
||||||
|
AC_HELP_STRING([--disable-card-support],
|
||||||
|
[disable smartcard support]),
|
||||||
|
card_support=$enableval)
|
||||||
|
AC_MSG_RESULT($card_support)
|
||||||
|
if test "$card_support" = yes ; then
|
||||||
|
AC_DEFINE(ENABLE_CARD_SUPPORT,1,[Define to include smartcard support])
|
||||||
|
else
|
||||||
|
build_scdaemon=no
|
||||||
|
fi
|
||||||
|
|
||||||
#
|
#
|
||||||
# Allow disabling of internal CCID support.
|
# Allow disabling of internal CCID support.
|
||||||
@ -547,9 +562,6 @@ AH_BOTTOM([
|
|||||||
handler. */
|
handler. */
|
||||||
#define HTTP_NO_WSASTARTUP
|
#define HTTP_NO_WSASTARTUP
|
||||||
|
|
||||||
/* We always include support for the OpenPGP card. */
|
|
||||||
#define ENABLE_CARD_SUPPORT 1
|
|
||||||
|
|
||||||
/* We want to use the libgcrypt provided memory allocation for
|
/* We want to use the libgcrypt provided memory allocation for
|
||||||
asprintf. */
|
asprintf. */
|
||||||
#define _ESTREAM_PRINTF_REALLOC gcry_realloc
|
#define _ESTREAM_PRINTF_REALLOC gcry_realloc
|
||||||
@ -1561,7 +1573,7 @@ if test "$build_agent_only" = "yes" ; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
#
|
#
|
||||||
# Set variables for use by th automake makefile.
|
# Set variables for use by automake makefiles.
|
||||||
#
|
#
|
||||||
AM_CONDITIONAL(BUILD_GPG, test "$build_gpg" = "yes")
|
AM_CONDITIONAL(BUILD_GPG, test "$build_gpg" = "yes")
|
||||||
AM_CONDITIONAL(BUILD_GPGSM, test "$build_gpgsm" = "yes")
|
AM_CONDITIONAL(BUILD_GPGSM, test "$build_gpgsm" = "yes")
|
||||||
@ -1574,6 +1586,8 @@ AM_CONDITIONAL(BUILD_DOC, test "$build_doc" = "yes")
|
|||||||
AM_CONDITIONAL(BUILD_SYMCRYPTRUN, test "$build_symcryptrun" = "yes")
|
AM_CONDITIONAL(BUILD_SYMCRYPTRUN, test "$build_symcryptrun" = "yes")
|
||||||
AM_CONDITIONAL(BUILD_GPGTAR, test "$build_gpgtar" = "yes")
|
AM_CONDITIONAL(BUILD_GPGTAR, test "$build_gpgtar" = "yes")
|
||||||
|
|
||||||
|
AM_CONDITIONAL(ENABLE_CARD_SUPPORT, test "$card_support" = yes)
|
||||||
|
|
||||||
AM_CONDITIONAL(RUN_GPG_TESTS,
|
AM_CONDITIONAL(RUN_GPG_TESTS,
|
||||||
test x$cross_compiling = xno -a "$build_gpg" = yes )
|
test x$cross_compiling = xno -a "$build_gpg" = yes )
|
||||||
|
|
||||||
|
@ -42,6 +42,12 @@ else
|
|||||||
bzip2_source =
|
bzip2_source =
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if ENABLE_CARD_SUPPORT
|
||||||
|
card_source = card-util.c
|
||||||
|
else
|
||||||
|
card_source =
|
||||||
|
endif
|
||||||
|
|
||||||
if HAVE_W32_SYSTEM
|
if HAVE_W32_SYSTEM
|
||||||
resource_objs += gpg-w32info.o
|
resource_objs += gpg-w32info.o
|
||||||
endif
|
endif
|
||||||
@ -110,7 +116,7 @@ gpg2_SOURCES = gpg.c \
|
|||||||
call-dirmngr.c call-dirmngr.h \
|
call-dirmngr.c call-dirmngr.h \
|
||||||
photoid.c photoid.h \
|
photoid.c photoid.h \
|
||||||
call-agent.c call-agent.h \
|
call-agent.c call-agent.h \
|
||||||
card-util.c \
|
$(card_source) \
|
||||||
exec.c exec.h
|
exec.c exec.h
|
||||||
|
|
||||||
gpgv2_SOURCES = gpgv.c \
|
gpgv2_SOURCES = gpgv.c \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user