From 2819ff6e3ee0822aeafdc8f2ace81de3d75ef05b Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Fri, 6 May 2011 01:47:42 +0200 Subject: [PATCH 8/8] chdir-long: Move AC_LIBOBJ invocations to module description. * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and gl_PREREQ_CHDIR_LONG invocations from here... * modules/chdir-long (configure.ac): ... to here. --- ChangeLog | 5 +++++ m4/chdir-long.m4 | 7 +------ modules/chdir-long | 4 ++++ 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index a8b2a0e..cb5efec 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2011-05-05 Bruno Haible + chdir-long: Move AC_LIBOBJ invocations to module description. + * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and + gl_PREREQ_CHDIR_LONG invocations from here... + * modules/chdir-long (configure.ac): ... to here. + canonicalize-lgpl: Fix autoconf macro ordering bug. * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require gl_STDLIB_H_DEFAULTS. diff --git a/m4/chdir-long.m4 b/m4/chdir-long.m4 index 27c61d2..9a343ac 100644 --- a/m4/chdir-long.m4 +++ b/m4/chdir-long.m4 @@ -1,4 +1,4 @@ -#serial 11 +#serial 12 # Use Gnulib's robust chdir function. # It can handle arbitrarily long directory names, which means @@ -25,11 +25,6 @@ have_arbitrary_file_name_length_limit #endif], gl_cv_have_arbitrary_file_name_length_limit=yes, gl_cv_have_arbitrary_file_name_length_limit=no)]) - - if test $gl_cv_have_arbitrary_file_name_length_limit = yes; then - AC_LIBOBJ([chdir-long]) - gl_PREREQ_CHDIR_LONG - fi ]) AC_DEFUN([gl_PREREQ_CHDIR_LONG], diff --git a/modules/chdir-long b/modules/chdir-long index 0c8e792..22236c6 100644 --- a/modules/chdir-long +++ b/modules/chdir-long @@ -20,6 +20,10 @@ stdlib [test $gl_cv_have_arbitrary_file_name_length_limit = yes] configure.ac: gl_FUNC_CHDIR_LONG +if test $gl_cv_have_arbitrary_file_name_length_limit = yes; then + AC_LIBOBJ([chdir-long]) + gl_PREREQ_CHDIR_LONG +fi Makefile.am: -- 1.6.3.2