* gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
authorSimon Josefsson <simon@josefsson.org>
Fri, 21 Oct 2005 12:55:02 +0000 (12:55 +0000)
committerSimon Josefsson <simon@josefsson.org>
Fri, 21 Oct 2005 12:55:02 +0000 (12:55 +0000)
Bruno Haible <bruno@clisp.org>.

m4/ChangeLog
m4/gc.m4

index 57a7d1a..d9212ca 100644 (file)
@@ -1,5 +1,8 @@
 2005-10-21  Simon Josefsson  <jas@extundo.com>
 
+       * gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
+       Bruno Haible <bruno@clisp.org>.
+
        * gc-des.m4: New file.
 
 2005-10-21  Simon Josefsson  <jas@extundo.com>
index bf46b92..41e569d 100644 (file)
--- a/m4/gc.m4
+++ b/m4/gc.m4
@@ -11,10 +11,9 @@ AC_DEFUN([gl_GC],
     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])
+    AC_LIB_HAVE_LINKFLAGS([gcrypt], [], [#include <gcrypt.h>])
   fi
   if test "$ac_cv_libgcrypt" = yes; then
-    AC_CHECK_HEADER(gcrypt.h)
     AC_LIBOBJ([gc-libgcrypt])
   else
     AC_LIBOBJ([gc-gnulib])