- AC_ARG_ENABLE(libgcrypt, [ --disable-gcrypt disable compilation with libgcrypt], [
- if test "x$enableval" != "xdisable"; then
- errifnotfound="yes"
- else
- search="no"
- fi
- ])
-
- GCRYPT_CONFIG=""
- if test "x$search" == "xyes"; then
- AC_PATH_PROG([GCRYPT_CONFIG], [libgcrypt-config], [no])
-
- if test "x$GCRYPT_CONFIG" == "xno"; then
- if test "x$errifnotfound" == "xyes"; then
- AC_MSG_ERROR([libgcrypt-config not found])
- fi
- else
- GCRYPT_CFLAGS="`$GCRYPT_CONFIG --cflags`"
- GCRYPT_LIBS="`$GCRYPT_CONFIG --libs`"
- fi
- fi