2 dnl Copyright (C) 2005-2006, 2009-2011 Free Software Foundation, Inc.
3 dnl This file is free software; the Free Software Foundation
4 dnl gives unlimited permission to copy and/or distribute it,
5 dnl with or without modifications, as long as this notice is preserved.
9 AC_ARG_WITH([libgcrypt],
10 AS_HELP_STRING([--with-libgcrypt], [use libgcrypt for low-level crypto]),
11 libgcrypt=$withval, libgcrypt=no)
12 if test "$libgcrypt" != no; then
13 AC_LIB_HAVE_LINKFLAGS([gcrypt], [gpg-error], [#include <gcrypt.h>])
15 if test "$ac_cv_libgcrypt" = yes; then
16 AC_LIBOBJ([gc-libgcrypt])
18 AC_LIBOBJ([gc-gnulib])
22 # Prerequisites of lib/gc.h
23 AC_DEFUN([gl_PREREQ_GC],
25 AC_REQUIRE([AC_C_RESTRICT])