changeset 15123:aa9e38804c40

symlinkat: Move AC_LIBOBJ invocations to module description. * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from here... * modules/symlinkat (configure.ac): ... to here.
author Bruno Haible <bruno@clisp.org>
date Sun, 22 May 2011 14:53:42 +0200
parents 15f55e6c30d6
children f4866d768f30
files ChangeLog m4/symlinkat.m4 modules/symlinkat
diffstat 3 files changed, 11 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-05-22  Bruno Haible  <bruno@clisp.org>
+
+	symlinkat: Move AC_LIBOBJ invocations to module description.
+	* m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
+	here...
+	* modules/symlinkat (configure.ac): ... to here.
+
 2011-05-22  Bruno Haible  <bruno@clisp.org>
 
 	symlink: Move AC_LIBOBJ invocations to module description.
--- a/m4/symlinkat.m4
+++ b/m4/symlinkat.m4
@@ -1,4 +1,4 @@
-# serial 4
+# serial 5
 # See if we need to provide symlinkat replacement.
 
 dnl Copyright (C) 2009-2011 Free Software Foundation, Inc.
@@ -16,6 +16,5 @@
   AC_CHECK_FUNCS_ONCE([symlinkat])
   if test $ac_cv_func_symlinkat = no; then
     HAVE_SYMLINKAT=0
-    AC_LIBOBJ([symlinkat])
   fi
 ])
--- a/modules/symlinkat
+++ b/modules/symlinkat
@@ -14,6 +14,9 @@
 
 configure.ac:
 gl_FUNC_SYMLINKAT
+if test $HAVE_SYMLINKAT = 0; then
+  AC_LIBOBJ([symlinkat])
+fi
 gl_UNISTD_MODULE_INDICATOR([symlinkat])
 
 Makefile.am: