Split parts of the gc module into gc-md5 and gc-hmac-md5 modules.
[gnulib.git] / m4 / gc-md5.m4
diff --git a/m4/gc-md5.m4 b/m4/gc-md5.m4
new file mode 100644 (file)
index 0000000..bb9a2b3
--- /dev/null
@@ -0,0 +1,14 @@
+# gc-md5.m4 serial 1
+dnl Copyright (C) 2005 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_MD5],
+[
+  AC_REQUIRE([gl_GC])
+  AC_DEFINE(GC_USE_MD5, 1, [Define to if you want to support MD5 through GC.])
+  if test "$ac_cv_libgcrypt" != yes; then
+    gl_MD5
+  fi
+])