From fad59bb3a344526f343b8e28a8d28059e81a42a9 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Wed, 2 Aug 2000 02:55:33 +0000 Subject: Add checks for GPG, PGP 5 and PGP 2. Only record the first one found. * configure.in, acconfig.c: Add checks for GPG, PGP 5 and PGP 2. Only record the first one found. svn path=/trunk/; revision=4465 --- configure.in | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'configure.in') diff --git a/configure.in b/configure.in index 8a3fc77018..a428c67173 100644 --- a/configure.in +++ b/configure.in @@ -530,7 +530,27 @@ else ;; esac fi - + +dnl ********** +dnl GPGPGPGPGP +dnl ********** +AC_PATH_PROG(GPG, gpg) +if test -n "$GPG"; then + AC_DEFINE_UNQUOTED(GPG_PATH, "$GPG") + AC_DEFINE(PGP_PROGRAM, "GPG") +else + AC_PATH_PROG(PGP5, pgp5) + if test -n "$PGP5"; then + AC_DEFINE_UNQUOTED(PGP5_PATH, "$PGP5") + AC_DEFINE(PGP_PROGRAM, "PGP") + else + AC_PATH_PROG(PGP, pgp) + if test -n "$PGP"; then + AC_DEFINE_UNQUOTED(PGP_PATH, "$PGP") + AC_DEFINE(PGP_PROGRAM, "PGP") + fi + fi +fi dnl ****************************** dnl Makefiles -- cgit