build-sys: only use AM_PATH_LIBGCRYPT macro if it exists
authorOlof Johansson <olofjn@axis.com>
Thu, 17 Sep 2015 08:42:55 +0000 (10:42 +0200)
committerOlof Johansson <olofjn@axis.com>
Thu, 24 Sep 2015 12:30:30 +0000 (14:30 +0200)
commit79e8bde40da4d18c553b64299ebb69f409260df4
treeeb1fc9d4b47497be5286e1557098204b0d23e917
parent7ee7b225bd2fc3e7a3980f5fb7b10dfc6e205578
build-sys: only use AM_PATH_LIBGCRYPT macro if it exists

If gcrypt's m4 macro files aren't installed, with this change, gcrypt
will be disabled --- unless gcrypt support was explicitly requested by
passing --enable-gcrypt to configure, in which case it will fail.
Without this change, autoconf would fail either way with not being able
to resolve AM_PATH_LIBGCRYPT.
configure.ac