mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
Start the agent on demand if option --enable-standard socket has been
enabled.
This commit is contained in:
parent
830af45ca2
commit
7d0aa53f7f
9 changed files with 262 additions and 129 deletions
45
configure.ac
45
configure.ac
|
@ -75,6 +75,7 @@ use_bzip2=yes
|
|||
use_exec=yes
|
||||
disable_keyserver_path=no
|
||||
use_ccid_driver=yes
|
||||
use_standard_socket=no
|
||||
|
||||
GNUPG_BUILD_PROGRAM(gpg, yes)
|
||||
GNUPG_BUILD_PROGRAM(gpgsm, yes)
|
||||
|
@ -251,18 +252,18 @@ if test "$use_exec" = yes ; then
|
|||
[enable email keyserver interface only]),
|
||||
try_mailto=$enableval, try_mailto=no)
|
||||
AC_MSG_RESULT($try_mailto)
|
||||
fi
|
||||
|
||||
AC_MSG_CHECKING([whether keyserver exec-path is enabled])
|
||||
AC_ARG_ENABLE(keyserver-path,
|
||||
AC_HELP_STRING([--disable-keyserver-path],
|
||||
[disable the exec-path option for keyserver helpers]),
|
||||
[if test "$enableval" = no ; then
|
||||
disable_keyserver_path=yes
|
||||
fi],enableval=yes)
|
||||
AC_MSG_RESULT($enableval)
|
||||
fi
|
||||
|
||||
AC_MSG_CHECKING([whether keyserver exec-path is enabled])
|
||||
AC_ARG_ENABLE(keyserver-path,
|
||||
AC_HELP_STRING([--disable-keyserver-path],
|
||||
[disable the exec-path option for keyserver helpers]),
|
||||
[if test "$enableval" = no ; then
|
||||
disable_keyserver_path=yes
|
||||
fi],enableval=yes)
|
||||
AC_MSG_RESULT($enableval)
|
||||
fi
|
||||
|
||||
|
||||
#
|
||||
# Check for the key/uid cache size. This can't be zero, but can be
|
||||
|
@ -586,6 +587,30 @@ if test "$disable_keyserver_path" = yes; then
|
|||
[Defined to disable exec-path for keyserver helpers])
|
||||
fi
|
||||
|
||||
#
|
||||
# Allows enabling the use of a standard socket by default This is
|
||||
# gpg-agent's option --[no-]use-standard-socket. For Windows we force
|
||||
# the use of this.
|
||||
#
|
||||
AC_MSG_CHECKING([whether to use a standard socket by default])
|
||||
AC_ARG_ENABLE(standard-socket,
|
||||
AC_HELP_STRING([--enable-standard-socket],
|
||||
[use a standard socket for the agent by default]),
|
||||
use_standard_socket=$enableval)
|
||||
tmp=""
|
||||
if test "$use_standard_socket" != yes; then
|
||||
if test "$have_w32_system" = yes; then
|
||||
use_standard_socket=yes
|
||||
tmp=" (forced)"
|
||||
fi
|
||||
fi
|
||||
AC_MSG_RESULT($use_standard_socket$tmp)
|
||||
if test "$use_standard_socket" = yes; then
|
||||
AC_DEFINE(USE_STANDARD_SOCKET,1,
|
||||
[Use a standard socket for the agent by default])
|
||||
fi
|
||||
|
||||
|
||||
# (These need to go after AC_PROG_CC so that $EXEEXT is defined)
|
||||
AC_DEFINE_UNQUOTED(EXEEXT,"$EXEEXT",[The executable file extension, if any])
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue