crypto/gc: Move AC_LIBOBJ invocations to module description.
authorBruno Haible <bruno@clisp.org>
Sat, 7 May 2011 12:11:41 +0000 (14:11 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Jun 2011 22:06:03 +0000 (00:06 +0200)
* m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
* modules/crypto/gc (configure.ac): ... to here.

ChangeLog
m4/gc.m4
modules/crypto/gc

index d7b8efc..508338c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2011-05-07  Bruno Haible  <bruno@clisp.org>
 
+       crypto/gc: Move AC_LIBOBJ invocations to module description.
+       * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
+       * modules/crypto/gc (configure.ac): ... to here.
+
+2011-05-07  Bruno Haible  <bruno@clisp.org>
+
        fwriting: Move AC_LIBOBJ invocations to module description.
        * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
        here...
index 976c0d9..ea076e9 100644 (file)
--- a/m4/gc.m4
+++ b/m4/gc.m4
@@ -1,4 +1,4 @@
-# gc.m4 serial 7
+# gc.m4 serial 8
 dnl Copyright (C) 2005-2006, 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,
@@ -12,9 +12,4 @@ AC_DEFUN([gl_GC],
   if test "$libgcrypt" != no; then
     AC_LIB_HAVE_LINKFLAGS([gcrypt], [gpg-error], [#include <gcrypt.h>])
   fi
-  if test "$ac_cv_libgcrypt" = yes; then
-    AC_LIBOBJ([gc-libgcrypt])
-  else
-    AC_LIBOBJ([gc-gnulib])
-  fi
 ])
index 408dfef..339cb81 100644 (file)
@@ -12,6 +12,11 @@ havelib
 
 configure.ac:
 gl_GC
+if test "$ac_cv_libgcrypt" = yes; then
+  AC_LIBOBJ([gc-libgcrypt])
+else
+  AC_LIBOBJ([gc-gnulib])
+fi
 if test $gl_cond_libtool = false; then
   gl_ltlibdeps="$gl_ltlibdeps $LTLIBGCRYPT"
   gl_libdeps="$gl_libdeps $LIBGCRYPT"