symlink: Move AC_LIBOBJ invocations to module description.
authorBruno Haible <bruno@clisp.org>
Sun, 22 May 2011 12:52:14 +0000 (14:52 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Jun 2011 22:06:59 +0000 (00:06 +0200)
* m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
here...
* modules/symlink (configure.ac): ... to here.

ChangeLog
m4/symlink.m4
modules/symlink

index 0562870e140ef7119185636a8c7686a55110ab59..0eb217b4ced4d6e2394a8a28f98a464ce1c487a7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-05-22  Bruno Haible  <bruno@clisp.org>
+
+       symlink: Move AC_LIBOBJ invocations to module description.
+       * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
+       here...
+       * modules/symlink (configure.ac): ... to here.
+
 2011-05-22  Bruno Haible  <bruno@clisp.org>
 
        strverscmp: Move AC_LIBOBJ invocations to module description.
index 917d5f0ec2cabba6b6fc0419b93ac0ebe3cd06b2..680c14f6610f9e25223a0b3e3e27a9007a187b02 100644 (file)
@@ -1,4 +1,4 @@
-# serial 4
+# serial 5
 # See if we need to provide symlink replacement.
 
 dnl Copyright (C) 2009-2011 Free Software Foundation, Inc.
@@ -17,7 +17,6 @@ AC_DEFUN([gl_FUNC_SYMLINK],
   dnl and Solaris 9, we want to fix a bug with trailing slash handling.
   if test $ac_cv_func_symlink = no; then
     HAVE_SYMLINK=0
-    AC_LIBOBJ([symlink])
   else
     AC_CACHE_CHECK([whether symlink handles trailing slash correctly],
       [gl_cv_func_symlink_works],
@@ -39,7 +38,6 @@ AC_DEFUN([gl_FUNC_SYMLINK],
       rm -f conftest.f conftest.link conftest.lnk2])
     if test "$gl_cv_func_symlink_works" != yes; then
       REPLACE_SYMLINK=1
-      AC_LIBOBJ([symlink])
     fi
   fi
 ])
index 729f01cbeb7b2a8bf4193ef1b3e51d62fb40e7b8..f6f1db2d79455c46b0741874619f66be1188155b 100644 (file)
@@ -11,6 +11,9 @@ lstat           [test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1]
 
 configure.ac:
 gl_FUNC_SYMLINK
+if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
+  AC_LIBOBJ([symlink])
+fi
 gl_UNISTD_MODULE_INDICATOR([symlink])
 
 Makefile.am: