mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Tidied gpgme check
This commit is contained in:
parent
fdb50f77e7
commit
54df2101be
10
configure.ac
10
configure.ac
@ -189,14 +189,12 @@ elif test "x$with_xscreensaver" = x; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
AM_CONDITIONAL([BUILD_PGP], [false])
|
AM_CONDITIONAL([BUILD_PGP], [false])
|
||||||
if test "x$enable_pgp" = xyes; then
|
if test "x$enable_pgp" != xno; then
|
||||||
AC_CHECK_LIB([gpgme], [main],
|
AC_CHECK_LIB([gpgme], [main],
|
||||||
[AM_CONDITIONAL([BUILD_PGP], [true]) LIBS="-lgpgme $LIBS" AC_DEFINE([HAVE_LIBGPGME], [1], [Have libgpgme])],
|
[AM_CONDITIONAL([BUILD_PGP], [true]) LIBS="-lgpgme $LIBS" AC_DEFINE([HAVE_LIBGPGME], [1], [Have libgpgme])],
|
||||||
[AC_MSG_ERROR([libgpgme is required for profanity])])
|
[AS_IF([test "x$enable_pgp" = xyes],
|
||||||
elif test "x$enable_pgp" = x; then
|
[AC_MSG_ERROR([libgpgme is required for pgp support])],
|
||||||
AC_CHECK_LIB([gpgme], [main],
|
[AC_MSG_NOTICE([libgpgme not found, pgp support not enabled])])])
|
||||||
[AM_CONDITIONAL([BUILD_PGP], [true]) LIBS="-lgpgme $LIBS" AC_DEFINE([HAVE_LIBGPGME], [1], [Have libgpgme])],
|
|
||||||
[AC_MSG_NOTICE([libgpgme not found, pgp support not included.])])
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AM_CONDITIONAL([BUILD_OTR], [false])
|
AM_CONDITIONAL([BUILD_OTR], [false])
|
||||||
|
Loading…
Reference in New Issue
Block a user