From 78cb09bd3634a3d183f1e9422c9eb990f27e358c Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 21 May 2011 16:02:11 +0200 Subject: [PATCH] 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. --- ChangeLog | 7 +++++++ m4/mkstemps.m4 | 3 +-- modules/mkstemps | 3 +++ 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index b41bc18f0..47d13298d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2011-05-21 Bruno Haible + 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 + mkstemp: Move AC_LIBOBJ invocations to module description. * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and gl_PREREQ_MKSTEMP invocations from here... diff --git a/m4/mkstemps.m4 b/m4/mkstemps.m4 index 2a065d602..74d4f0ec2 100644 --- 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_DEFUN([gl_FUNC_MKSTEMPS], AC_CHECK_FUNCS_ONCE([mkstemps]) if test $ac_cv_func_mkstemps != yes; then HAVE_MKSTEMPS=0 - AC_LIBOBJ([mkstemps]) fi ]) diff --git a/modules/mkstemps b/modules/mkstemps index 56718a9b4..cb3e5722f 100644 --- a/modules/mkstemps +++ b/modules/mkstemps @@ -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]) -- 2.11.0