getsubopt: Move AC_LIBOBJ invocations to module description.
authorBruno Haible <bruno@clisp.org>
Sun, 8 May 2011 11:24:43 +0000 (13:24 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Jun 2011 22:06:08 +0000 (00:06 +0200)
* m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
gl_PREREQ_GETSUBOPT invocations from here...
* modules/getsubopt (configure.ac): ... to here.

ChangeLog
m4/getsubopt.m4
modules/getsubopt

index da75d62..a82380a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2011-05-08  Bruno Haible  <bruno@clisp.org>
 
+       getsubopt: Move AC_LIBOBJ invocations to module description.
+       * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
+       gl_PREREQ_GETSUBOPT invocations from here...
+       * modules/getsubopt (configure.ac): ... to here.
+
+2011-05-08  Bruno Haible  <bruno@clisp.org>
+
        getpass-gnu: Move AC_LIBOBJ invocations to module description.
        * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
        AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
index 11dc5d8..827d8c5 100644 (file)
@@ -1,4 +1,4 @@
-# getsubopt.m4 serial 4
+# getsubopt.m4 serial 5
 dnl Copyright (C) 2004, 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,
@@ -13,8 +13,6 @@ AC_DEFUN([gl_FUNC_GETSUBOPT],
   AC_CHECK_FUNCS_ONCE([getsubopt])
   if test $ac_cv_func_getsubopt = no; then
     HAVE_GETSUBOPT=0
-    AC_LIBOBJ([getsubopt])
-    gl_PREREQ_GETSUBOPT
   fi
 ])
 
index eaf8e87..a544ca3 100644 (file)
@@ -13,6 +13,10 @@ memchr          [test $HAVE_GETSUBOPT = 0]
 
 configure.ac:
 gl_FUNC_GETSUBOPT
+if test $HAVE_GETSUBOPT = 0; then
+  AC_LIBOBJ([getsubopt])
+  gl_PREREQ_GETSUBOPT
+fi
 gl_STDLIB_MODULE_INDICATOR([getsubopt])
 
 Makefile.am: