From: Bruno Haible Date: Sat, 21 May 2011 18:53:14 +0000 (+0200) Subject: renameat: Move AC_LIBOBJ invocations to module description. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf5e5d5e2651f12f40701f9ca54158644319724b;p=pspp renameat: Move AC_LIBOBJ invocations to module description. * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from here... * modules/renameat (configure.ac): ... to here. --- diff --git a/ChangeLog b/ChangeLog index ca585d5a9f..24caa7687c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2011-05-21 Bruno Haible + + renameat: Move AC_LIBOBJ invocations to module description. + * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from + here... + * modules/renameat (configure.ac): ... to here. + 2011-05-21 Bruno Haible rename: Respect rules for use of AC_LIBOBJ. diff --git a/m4/renameat.m4 b/m4/renameat.m4 index 2fa2b8cfa3..fcaae79a1c 100644 --- a/m4/renameat.m4 +++ b/m4/renameat.m4 @@ -1,4 +1,4 @@ -# serial 2 +# serial 3 # See if we need to provide renameat replacement. dnl Copyright (C) 2009-2011 Free Software Foundation, Inc. @@ -17,12 +17,8 @@ AC_DEFUN([gl_FUNC_RENAMEAT], AC_CHECK_FUNCS_ONCE([renameat]) if test $ac_cv_func_renameat = no; then HAVE_RENAMEAT=0 - AC_LIBOBJ([renameat]) - AC_LIBOBJ([at-func2]) elif test $REPLACE_RENAME = 1; then dnl Solaris 9 and 10 have the same bugs in renameat as in rename. REPLACE_RENAMEAT=1 - AC_LIBOBJ([renameat]) - AC_LIBOBJ([at-func2]) fi ]) diff --git a/modules/renameat b/modules/renameat index cefdb1306a..6e1012a32b 100644 --- a/modules/renameat +++ b/modules/renameat @@ -20,6 +20,10 @@ save-cwd [test $HAVE_RENAMEAT = 0 || test $REPLACE_RENAMEAT = 1] configure.ac: gl_FUNC_RENAMEAT +if test $HAVE_RENAMEAT = 0 || test $REPLACE_RENAMEAT = 1; then + AC_LIBOBJ([renameat]) + AC_LIBOBJ([at-func2]) +fi gl_STDIO_MODULE_INDICATOR([renameat]) Makefile.am: