mkstemps: Move AC_LIBOBJ invocations to module description.
authorBruno Haible <bruno@clisp.org>
Sat, 21 May 2011 14:02:11 +0000 (16:02 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Jun 2011 22:06:34 +0000 (00:06 +0200)
* m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
here...
* modules/mkstemps (configure.ac): ... to here.

ChangeLog
m4/mkstemps.m4
modules/mkstemps

index b41bc18..47d1329 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2011-05-21  Bruno Haible  <bruno@clisp.org>
 
+       mkstemps: Move AC_LIBOBJ invocations to module description.
+       * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
+       here...
+       * modules/mkstemps (configure.ac): ... to here.
+
+2011-05-21  Bruno Haible  <bruno@clisp.org>
+
        mkstemp: Move AC_LIBOBJ invocations to module description.
        * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
        gl_PREREQ_MKSTEMP invocations from here...
index 2a065d6..74d4f0e 100644 (file)
@@ -1,4 +1,4 @@
-# mkstemps.m4 serial 1
+# mkstemps.m4 serial 2
 dnl Copyright (C) 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,
@@ -14,6 +14,5 @@ AC_DEFUN([gl_FUNC_MKSTEMPS],
   AC_CHECK_FUNCS_ONCE([mkstemps])
   if test $ac_cv_func_mkstemps != yes; then
     HAVE_MKSTEMPS=0
-    AC_LIBOBJ([mkstemps])
   fi
 ])
index 56718a9..cb3e572 100644 (file)
@@ -12,6 +12,9 @@ tempname        [test $HAVE_MKSTEMPS = 0]
 
 configure.ac:
 gl_FUNC_MKSTEMPS
+if test $HAVE_MKSTEMPS = 0; then
+  AC_LIBOBJ([mkstemps])
+fi
 gl_MODULE_INDICATOR([mkstemps])
 gl_STDLIB_MODULE_INDICATOR([mkstemps])