verify: new macro 'assume'
[gnulib.git] / m4 / gc-camellia.m4
1 # gc-camellia.m4 serial 3
2 dnl Copyright (C) 2007, 2009-2013 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.
6
7 AC_DEFUN([gl_GC_CAMELLIA],
8 [
9   AC_REQUIRE([gl_GC])
10   if test "$ac_cv_libgcrypt" = yes; then
11     AC_CACHE_CHECK([for camellia in libgcrypt], [gl_cv_libgcrypt_camellia], [
12       AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <gcrypt.h>]],
13           [[return gcry_cipher_open (NULL, GCRY_CIPHER_CAMELLIA128, 0, 0);]])],
14         [gl_cv_libgcrypt_camellia=yes],
15         [gl_cv_libgcrypt_camellia=no])])
16     if test "$gl_cv_libgcrypt_camellia" = yes; then
17       AC_DEFINE([HAVE_CAMELLIA], [1], [Define if your libgcrypt supports Camellia.])
18     fi
19   fi
20 ])