changeset 15052:248d56be0a25

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.
author Bruno Haible <bruno@clisp.org>
date Sat, 21 May 2011 16:02:11 +0200
parents f3891cfd5901
children d8eeaab555f5
files ChangeLog m4/mkstemps.m4 modules/mkstemps
diffstat 3 files changed, 11 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+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.
--- a/m4/mkstemps.m4
+++ b/m4/mkstemps.m4
@@ -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_CHECK_FUNCS_ONCE([mkstemps])
   if test $ac_cv_func_mkstemps != yes; then
     HAVE_MKSTEMPS=0
-    AC_LIBOBJ([mkstemps])
   fi
 ])
--- a/modules/mkstemps
+++ b/modules/mkstemps
@@ -12,6 +12,9 @@
 
 configure.ac:
 gl_FUNC_MKSTEMPS
+if test $HAVE_MKSTEMPS = 0; then
+  AC_LIBOBJ([mkstemps])
+fi
 gl_MODULE_INDICATOR([mkstemps])
 gl_STDLIB_MODULE_INDICATOR([mkstemps])