From 2ccbc9ef6bd41aedb53d8d89b5b453034a74212b Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 21 May 2011 15:43:36 +0200 Subject: [PATCH] mkdtemp: Move AC_LIBOBJ invocations to module description. * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP invocations from here... * modules/mkdtemp (configure.ac): ... to here. --- ChangeLog | 7 +++++++ m4/mkdtemp.m4 | 5 ++--- modules/mkdtemp | 4 ++++ 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index cdf53eb4bb..586e7886d8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2011-05-21 Bruno Haible + + mkdtemp: Move AC_LIBOBJ invocations to module description. + * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP + invocations from here... + * modules/mkdtemp (configure.ac): ... to here. + 2011-05-21 Bruno Haible mkdir: Move AC_LIBOBJ invocations to module description. diff --git a/m4/mkdtemp.m4 b/m4/mkdtemp.m4 index 073e14d386..cc6483f640 100644 --- a/m4/mkdtemp.m4 +++ b/m4/mkdtemp.m4 @@ -1,4 +1,4 @@ -# mkdtemp.m4 serial 7 +# mkdtemp.m4 serial 8 dnl Copyright (C) 2001-2003, 2006-2007, 2009-2011 Free Software Foundation, dnl Inc. dnl This file is free software; the Free Software Foundation @@ -8,10 +8,9 @@ dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_FUNC_MKDTEMP], [ AC_REQUIRE([gl_STDLIB_H_DEFAULTS]) - AC_REPLACE_FUNCS([mkdtemp]) + AC_CHECK_FUNCS([mkdtemp]) if test $ac_cv_func_mkdtemp = no; then HAVE_MKDTEMP=0 - gl_PREREQ_MKDTEMP fi ]) diff --git a/modules/mkdtemp b/modules/mkdtemp index 49ac06bcdd..87718a1b80 100644 --- a/modules/mkdtemp +++ b/modules/mkdtemp @@ -12,6 +12,10 @@ tempname [test $HAVE_MKDTEMP = 0] configure.ac: gl_FUNC_MKDTEMP +if test $HAVE_MKDTEMP = 0; then + AC_LIBOBJ([mkdtemp]) + gl_PREREQ_MKDTEMP +fi gl_STDLIB_MODULE_INDICATOR([mkdtemp]) Makefile.am: -- 2.30.2