X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=m4%2Fgc-camellia.m4;h=75b6770e8f93e2ffcbdf322c68afe0b86d375eaf;hb=0e91303ba89db46958de61bcc0e9680188b00377;hp=c1fb02fe6c0bfeb11d30f078c17575b57fa8c89e;hpb=2d6501c921265a1536ca044f45773e761b639706;p=gnulib.git diff --git a/m4/gc-camellia.m4 b/m4/gc-camellia.m4 index c1fb02fe6..75b6770e8 100644 --- a/m4/gc-camellia.m4 +++ b/m4/gc-camellia.m4 @@ -1,5 +1,5 @@ -# gc-camellia.m4 serial 1 -dnl Copyright (C) 2007 Free Software Foundation, Inc. +# gc-camellia.m4 serial 3 +dnl Copyright (C) 2007, 2009-2011 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. @@ -9,12 +9,12 @@ AC_DEFUN([gl_GC_CAMELLIA], AC_REQUIRE([gl_GC]) if test "$ac_cv_libgcrypt" = yes; then AC_CACHE_CHECK([for camellia in libgcrypt], [gl_cv_libgcrypt_camellia], [ - AC_TRY_COMPILE([#include ], - [return gcry_cipher_open (NULL, GCRY_CIPHER_CAMELLIA128, 0, 0);], + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include ]], + [[return gcry_cipher_open (NULL, GCRY_CIPHER_CAMELLIA128, 0, 0);]])], [gl_cv_libgcrypt_camellia=yes], [gl_cv_libgcrypt_camellia=no])]) if test "$gl_cv_libgcrypt_camellia" = yes; then - AC_DEFINE(HAVE_CAMELLIA, 1, [Define if your libgcrypt supports Camellia.]) + AC_DEFINE([HAVE_CAMELLIA], [1], [Define if your libgcrypt supports Camellia.]) fi fi ])