summaryrefslogtreecommitdiff
path: root/lgl/m4/gc.m4
diff options
context:
space:
mode:
Diffstat (limited to 'lgl/m4/gc.m4')
-rw-r--r--lgl/m4/gc.m427
1 files changed, 27 insertions, 0 deletions
diff --git a/lgl/m4/gc.m4 b/lgl/m4/gc.m4
new file mode 100644
index 0000000000..1d6b37919c
--- /dev/null
+++ b/lgl/m4/gc.m4
@@ -0,0 +1,27 @@
+# gc.m4 serial 4
+dnl Copyright (C) 2005, 2006 Free Software Foundation, Inc.
+dnl This file is free software; the Free Software Foundation
+dnl gives unlimited permission to copy and/or distribute it,
+dnl with or without modifications, as long as this notice is preserved.
+
+AC_DEFUN([gl_GC],
+[
+ AC_ARG_WITH(libgcrypt,
+ AS_HELP_STRING([--with-libgcrypt], [use libgcrypt for low-level crypto]),
+ libgcrypt=$withval, libgcrypt=no)
+ if test "$libgcrypt" != no; then
+ AC_LIB_HAVE_LINKFLAGS([gcrypt], [], [#include <gcrypt.h>])
+ fi
+ if test "$ac_cv_libgcrypt" = yes; then
+ AC_LIBOBJ([gc-libgcrypt])
+ else
+ AC_LIBOBJ([gc-gnulib])
+ fi
+])
+
+# Prerequisites of lib/gc.h
+AC_DEFUN([gl_PREREQ_GC],
+[
+ AC_REQUIRE([AC_C_RESTRICT])
+ :
+])