From: Bruno Haible Date: Sat, 21 May 2011 11:44:22 +0000 (+0200) Subject: linkat: Move AC_LIBOBJ invocations to module description. X-Git-Tag: v0.1~2501 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=267355298d6117c03db350bf97878979f7aa9d48;p=gnulib.git linkat: Move AC_LIBOBJ invocations to module description. * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from here... * modules/linkat (configure.ac): ... to here. --- diff --git a/ChangeLog b/ChangeLog index 209621160..c4f43cb97 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2011-05-21 Bruno Haible + linkat: Move AC_LIBOBJ invocations to module description. + * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from + here... + * modules/linkat (configure.ac): ... to here. + +2011-05-21 Bruno Haible + link: Respect rules for use of AC_LIBOBJ. * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here... * modules/link (configure.ac): ... to here. diff --git a/m4/linkat.m4 b/m4/linkat.m4 index 476f62349..0cf8d800d 100644 --- a/m4/linkat.m4 +++ b/m4/linkat.m4 @@ -1,4 +1,4 @@ -# serial 5 +# serial 6 # See if we need to provide linkat replacement. dnl Copyright (C) 2009-2011 Free Software Foundation, Inc. @@ -19,8 +19,6 @@ AC_DEFUN([gl_FUNC_LINKAT], AC_CHECK_HEADERS_ONCE([sys/param.h]) if test $ac_cv_func_linkat = no; then HAVE_LINKAT=0 - AC_LIBOBJ([linkat]) - AC_LIBOBJ([at-func2]) else AC_CACHE_CHECK([whether linkat(,AT_SYMLINK_FOLLOW) works], [gl_cv_func_linkat_follow], @@ -90,7 +88,6 @@ choke me if test "$gl_cv_func_linkat_follow" != yes \ || test $gl_linkat_slash_bug = 1; then REPLACE_LINKAT=1 - AC_LIBOBJ([linkat]) AC_DEFINE_UNQUOTED([LINKAT_TRAILING_SLASH_BUG], [$gl_linkat_slash_bug], [Define to 1 if linkat fails to recognize a trailing slash.]) fi diff --git a/modules/linkat b/modules/linkat index 1f0978571..3392e57d6 100644 --- a/modules/linkat +++ b/modules/linkat @@ -27,6 +27,12 @@ symlink [test $HAVE_LINKAT = 0 || test $REPLACE_LINKAT = 1] configure.ac: gl_FUNC_LINKAT +if test $HAVE_LINKAT = 0 || test $REPLACE_LINKAT = 1; then + AC_LIBOBJ([linkat]) +fi +if test $HAVE_LINKAT = 0; then + AC_LIBOBJ([at-func2]) +fi gl_UNISTD_MODULE_INDICATOR([linkat]) Makefile.am: