strerror: Move AC_LIBOBJ invocations to module description.
authorBruno Haible <bruno@clisp.org>
Sun, 22 May 2011 11:19:32 +0000 (13:19 +0200)
committerEric Blake <eblake@redhat.com>
Tue, 7 Jun 2011 22:48:53 +0000 (16:48 -0600)
* m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
gl_PREREQ_STRERROR invocations from here...
* modules/strerror (configure.ac): ... to here.

ChangeLog
m4/strerror.m4
modules/strerror

index fc0cec7..59c64ae 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-05-22  Bruno Haible  <bruno@clisp.org>
+
+       strerror: Move AC_LIBOBJ invocations to module description.
+       * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
+       gl_PREREQ_STRERROR invocations from here...
+       * modules/strerror (configure.ac): ... to here.
+
 2011-05-21  Bruno Haible  <bruno@clisp.org>
 
        perror: Use common idiom.
index 5e1c011..25edd91 100644 (file)
@@ -1,4 +1,4 @@
-# strerror.m4 serial 11
+# strerror.m4 serial 12
 dnl Copyright (C) 2002, 2007-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,
@@ -37,10 +37,6 @@ AC_DEFUN([gl_FUNC_STRERROR],
     dnl to <errno.h>. Replace it.
     REPLACE_STRERROR=1
   fi
-  if test $REPLACE_STRERROR = 1; then
-    AC_LIBOBJ([strerror])
-    gl_PREREQ_STRERROR
-  fi
 ])
 
 # Prerequisites of lib/strerror.c.
index 3c83cf9..a0b7014 100644 (file)
@@ -14,6 +14,10 @@ verify           [test $REPLACE_STRERROR = 1]
 
 configure.ac:
 gl_FUNC_STRERROR
+if test $REPLACE_STRERROR = 1; then
+  AC_LIBOBJ([strerror])
+  gl_PREREQ_STRERROR
+fi
 gl_MODULE_INDICATOR([strerror])
 gl_STRING_MODULE_INDICATOR([strerror])